I am using jQuery validation to attempt to keep a user from posting back unless he meets a couple of qualifications. But the required option doesn’t seem to be keeping the form from submitting…
Here is jsFiddle with an example: jsFiddle
I double checked my jQuery code and it would seem as though it was working. jsFiddle says it valid code. So I am not sure what the hangup is?
Thanks
jQuery.validate uses names for the rules, not ids. So replace the ids with names in your input fields.
Also your form should be
<form id="temp1">and not<form id="#temp">.Here’s a link to your fixed code:
and the script: