public/js/js.js
/**
 * Dodanie pola typu textbox do ankiety
 */
Dodanie pola typu textbox do ankiety
Dodanie pola typu textbox do ankiety
function newTextbox(){   
    idOfQuestion++;
    questionDetails.push(0);
    document.getElementById("forma").innerHTML += `
    <div xd="Text" id="EntireQuestionNo`+idOfQuestion+`">
    <button type="button" class="btn btn-danger deleteButton" onclick="deleteQuestion(`+idOfQuestion+`)">USUŃ TO PYTANIE</button>       
    <label class="questionLabel " id="questionLabel`+idOfQuestion +`" contenteditable="true">Example textarea</label>
        <div id="divOfQuestion`+idOfQuestion+`" class="form-group col-md-8">             
                <br>
                <textarea  class="form-control" id="question`+idOfQuestion +`" rows="1"></textarea>
        </div><br>
    </div>
    `;
}
function newTextbox ( ) { idOfQuestion ++ ; questionDetails . push ( 0 ) ; document . getElementById ( "forma" ) . innerHTML += ` ` + idOfQuestion + ` ` + idOfQuestion + ` ` + idOfQuestion + ` ` + idOfQuestion + ` ` + idOfQuestion + ` ` ; }
Dodanie pola typu textbox do ankiety
Dodanie pola typu textbox do ankiety
// <label class="questionLabel" for="questiofn`+idOfQuestion +`" contenteditable="true">Example textarea</label>