HTML
<input type="submit" id="submit_button" class="push" value="Complete Registration"</input>
JS
if (this.checked && $("#num_attendees option:selected").text() != 'Please Choose'
&& $.stepTwoComplete_one == 'complete' && $.stepTwoComplete_two == 'complete') {
$("#submit_button").attr("disabled",false);
} else {
$("#submit_button").attr("disabled",true);
}
答案 0 :(得分:1)
确保您有一个表单元素周围的提交按钮,并正确结束提交按钮标记(如Dave所说):
<form action="myScript.php" method="post">
<input type="submit" id="submit_button" class="push" value="Complete Registration"/>
</form>