I am using the jQuery Validate plugin on my form, and was wondering how I would set every field to be required by default?
I am using a custom method called ‘methodname’ and I tried the following code to no avail:
$.validator.setDefaults({
methodname : true
});
Any ideas?
Thanks!
Quick’n’dirty fix: