0
我有一個問題表單,我想驗證使用jQuery。我的形式如下:如何檢查多個單選按鈕選擇?
<form id="question_answer_form" action="submit_answers.php" method="post">
<table class="zebra-striped">
<tr>
<td >Question 1</td>
<td>
<input type="radio" name="question_answer1" value="1"> Yes
<input type="radio" name="question_answer1" value="0"> No
</td>
</tr>
<tr>
<td >Question 2</td>
<td>
<input type="radio" name="question_answer2" value="1"> Yes
<input type="radio" name="question_answer2" value="0"> No
</td>
</tr>
<tr>
<td >Question 3</td>
<td>
<input type="radio" name="question_answer3" value="1"> Yes
<input type="radio" name="question_answer3" value="0"> No
</td>
</tr>
<tr>
<td colspan="2"><input class="btn success" type="button" value="Submit" id="questions"/></td>
</tr>
</table>
</form>
jQuery的通話
$("#questions").click(function (e) {
e.preventDefault();
// Check radio button status and notify...;
});
有什麼建議?
這很好,謝謝! – Paul 2012-01-18 13:50:32
不客氣。 – Ph0en1x 2012-01-18 13:56:39