Take the 2-minute tour ×

I am using this technique to place default input in the text fields as a hint to users.


I would like to also validate the fields using jquery validate.

How can i get the validater to ignore the default input?

share|improve this question
Don't do that, the semantics suck and the technique has accessibility issues. Use real labels. If you really want them under the input and to vanish when people try to use the control, then position them under the input, e.g. dorward.me.uk/tmp/label-work/example.html –  Quentin May 26 '10 at 6:04

1 Answer 1

You could try using a different method that does not actually add a value to the input fields for the hint. This might do the trick: http://fuelyourcoding.com/scripts/infield/

Basically, your label field is positioned directly within the text box. Caveats are your form design needs to be able to accommodate such an approach.

share|improve this answer

Your Answer


