I am validating a bunch of text boxes but these boxes have a default value using a text water mark if they are empty. How do I create the validation rule so that it ignores a single default value?
Originally the default value of these text boxes were all different (default value stored in ToolTip tag), then I realized it would be a lot easier if they were just all the same value.
Here is my code:
// You can specify some validation options here but not rules and messages
$('form').validate();
// Add a custom class to your name mangled input and add rules like this
$('.username').rules('add', {
required: true,
messages: {
required: 'Some custom message for the username required field'
}
});