I think this is better:
jQuery.validator.addMethod("defaultInvalid", function(value, element)
{
return !(element.value == element.defaultValue);
});
More Related Contents:
- jQuery Validate – Enable validation for hidden fields
- Jquery Validation plug-in custom error placement
- jQuery validation in different languages
- Conditional Validation in asp.net MVC4
- How to display messages from jQuery Validate plugin inside of Tooltipster tooltips?
- jQuery validate: How to add a rule for regular expression validation?
- jQuery Validate – require at least one field in a group to be filled
- jQuery Validation Plugin – adding rules that apply to multiple fields
- jQuery Validate Required Select
- jQuery validator and a custom rule that uses AJAX
- How to manually trigger validation with jQuery validate?
- How to validate array of inputs using validate plugin jquery
- ASP.net MVC 3 jQuery Validation; Disable Unobtrusive OnKeyUp?
- jQuery Validation plugin in ASP.NET Web Forms
- How can I use jQuery validation with the “chosen” plugin?
- JavaScript Detecting Valid Dates
- jQuery Validate Ignore elements with style
- jQuery validate plugin on DIV
- Jquery Validation for Dynamically Created Fields
- onkeyup and onfocusout is not working in jQuery Validate
- jquery validate check at least one checkbox
- jquery validation: prevent form submit
- Manually set unobtrusive validation error on a textbox
- jquery client side validation not working in MVC3 partial view
- MVC 4 client side validation not working
- jQuery validator and datepicker click not validating
- jquery validation not waiting for remote validation to return true, considers form valid
- How to include JavaScript files by h:outputScript? [duplicate]
- jQuery validate plugin : accept letters only?
- MVC3 Validation – Require One From Group