jQuery Validate - live submit firing before validation in IE
Hi,
Using: jQuery Validate (jQuery Validation Plugin 1.8.0)
Browser: IE 8
Code:
- $('#myForm').validate({
rules: {
txtAddName: "required"
},
messages: {
txtAddName: "Please enter a Name"
},
errorLabelContainer: $("#myForm div.validationError")
});
- $('#myForm').live('submit', function () {
alert('firing..');
return false;
});
Problem: The live('submit).. code fires before the validation does. So, validation never actually stops the form submitting. In other browsers (Firefox, Chrome, Safari), this is not a problem, validation always fires first.
Can anyone tell me what I'm doing wrong?
Thanks.