0

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

1 回答 1

1

Make sure you have the submit button wrapped around a form element, and end the submit button tag correctly (as said by Dave):

<form action="myScript.php" method="post">
  <input type="submit" id="submit_button" class="push" value="Complete Registration"/>
</form>
于 2013-03-30T05:09:10.943 回答