[jQuery] Trouble with validate plug-in
We're trying to get set up with the Validate plug-in. This is the
scenario:
JQUERY
===================
$(document).ready(function()
{
$("#myForm").validate();
});
HTML
===================
<form action="#" method="post" id="myForm">
...
</form>
But, when the submit button is pressed the following error is through
in the FF javascript console:
Error: jQuery(element).data is not a function
Source File: XXX
Line: YYY
The piece of code which it refers to is in the jquery.validate.js
which is the last line of the following block:
data: function( element ) {
return this.settings.rules
? this.settings.rules[ element.name ]
: this.settings.meta
? jQuery(element).data()[ this.settings.meta ]
: jQuery(element).data();
}
Unfortunately, Jorn's blog keeps on eating up my comment when trying
to post this there so i am trying here.
Anyone have any idea where we've gone wrong?