[EMAIL PROTECTED] schrieb:
I have a form that uses the value attribute to display the field name.
I'd like it to trigger a "false" validation if the user doesn't change
this value or leaves it blank.
An example for that, see the second field (company url):
http://jquery.bassistance.de/validate/demo/marketo/
The custom method used for that:
// a custom method making the default value for companyurl ("http://")
invalid, without displaying the "invalid url" message
jQuery.validator.addMethod("defaultInvalid", function(value, element) {
return value != element.defaultValue;
}, "");
You may want to set the default message to the same as for required in
your case, eg. $.validator.messages.required.
Jörn