如何在jquery中将我的按钮链接到另一个页面?

时间:2013-03-30 03:49:56

标签: jquery button

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);
}

1 个答案:

答案 0 :(得分:1)

确保您有一个表单元素周围的提交按钮,并正确结束提交按钮标记(如Dave所说):

<form action="myScript.php" method="post">
  <input type="submit" id="submit_button" class="push" value="Complete Registration"/>
</form>