[jQuery] Form elements able to be deleted by user? [validate]
I'm using the jquery.validate plugin to validate an email address in a
login form and I have seen a weird bug which I was wondering whether
anyone else has seen / fixed?
I entered a invalid email and the validation error message was show as
normal however, I could delete the error message and also the email
text box! The result was the form was not able to be submitted.
Unfortunately, I was unable to reproduce the problem after seeing it
the once.
Info:
Jquery: 1.3.1
jquery.validate.1.5.1
Browser: IE 7
Relevant code snippet:
<code>
// Use JQuery.validator to validate login/registration popup form
$("#f2").validate({
rules: {
txtRemail: {
required: function() {return $('#optR').is(':checked');},
email: true
},
},
</code>