<tr>
<td><font face="Arial">Answers</font></td>
<td>
<div id="answers" >
<input type="text" name="T2" size="20" id="answer" class="selector">
</div>
<input type="button" value="+" name="B3" id="btnAnswer" onclick="addAnswers()">
(click on this button will create another field so you can type content
for the other answer, this can be done using jquery)<br>
<input type="checkbox" name="c" value="1">Allow this answer to be free text
</td>
</tr>
函数 addAnswers(){
$('#answers').append('<p class="\selector\">' + $('#answer').val() + '</p>'); }
现在我想获取答案的这些值以将其发送到服务器..答案的数量可能是 1 到 n...