I am trying to use the jQuery Validation plugin (http://docs.jquery.com/Plugins/Validation/) in conjunction with a field hint.
The problem is that the field tip puts the text in the value attribute, and since there is text in the value attribute, the Validation plugin does not see that something is wrong.
My idea was to check the validity of the error if the field is empty or if the field contains the same text as the field hint (that is: if someone was to enter "Name" in the name field, then an error.
Is there an elegant way to use validation in combination with code hint?
Thank!
Doron
source
share