I am trying to find a way to easily add default values to form which is using jquery validate plugin. I searched and didn’t find anything useful, and the last similar question is one year old.
So, to ask again, is there easy way to add default values to form without messing with jquery validate code.
And of course, default values should disappear when user start to type inside the field.
Edit: I see that question is little confusing, so here is better explanation. I want to add default text to form, and i want validation plugin to ignore that default value. I know i can add method that will check if value is default value, but since form is really big, i would prefer some other solution. Like some plugin that places default text above input field, so if form gets submitted with that filed not filled by user, it appears to validate plugin as empty.
If you just use that as attractiveness, you can just use placeholder attribute,
<input name="search" type="text" placeholder="Enter some keywords..." />