multiple answers
This commit is contained in:
parent
768d3f6594
commit
f1a7602a8a
@ -12,8 +12,9 @@
|
|||||||
|
|
||||||
element.setAttribute("type", "text");
|
element.setAttribute("type", "text");
|
||||||
element.setAttribute("name", "answer");
|
element.setAttribute("name", "answer");
|
||||||
|
element.setAttribute("placeholder", "Enter the new answer");
|
||||||
|
|
||||||
var foo = document.getElementById("formulaire");
|
var foo = document.getElementById("answerList");
|
||||||
foo.appendChild(element);
|
foo.appendChild(element);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -59,7 +60,7 @@
|
|||||||
<textarea id="question" name="question"
|
<textarea id="question" name="question"
|
||||||
rows="10" cols="50"></textarea>
|
rows="10" cols="50"></textarea>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p id="answerList">
|
||||||
<label for="answer">Quelle est la réponse ? </label>
|
<label for="answer">Quelle est la réponse ? </label>
|
||||||
<input id="answer" name="answer" type="text" />
|
<input id="answer" name="answer" type="text" />
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user