Remove/restore a form field's default value on focus/blur


/ Published in: jQuery
Save to your folder(s)

If your HTML form fields have a 'watermark' default value, it will be removed when the field is focussed and replaced if focus is lost (and the user has left the field blank).

To use give your form field a class of 'default-value'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.