multiple answers

This commit is contained in:
Bertrand Cournaud 2012-05-22 01:00:49 +02:00
parent 768d3f6594
commit f1a7602a8a

View File

@ -12,8 +12,9 @@
element.setAttribute("type", "text");
element.setAttribute("name", "answer");
element.setAttribute("placeholder", "Enter the new answer");
var foo = document.getElementById("formulaire");
var foo = document.getElementById("answerList");
foo.appendChild(element);
}
</script>
@ -59,7 +60,7 @@
<textarea id="question" name="question"
rows="10" cols="50"></textarea>
</p>
<p>
<p id="answerList">
<label for="answer">Quelle est la réponse ? </label>
<input id="answer" name="answer" type="text" />
</p>