Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function () {
- $("#first, #second, #persons, #table, #date, #time, #number, #email").bind("change keyup",
- function () {
- if ($("#first").attr('checked') == true && $("#second").val() != "")
- $(this).closest("form").find(":submit").removeAttr("disabled");
- else
- $(this).closest("form").find(":submit").attr("disabled", "disabled");
- });
- });
Add Comment
Please, Sign In to add comment