Posted By

f6design on 02/25/11


form focus

Versions (?)

Who likes this?

3 people have marked this snippet as a favorite


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

 / Published in: jQuery

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  


RSS Icon Subscribe to comments
Posted By: Jacky888 on October 1, 2018

the 8 best winegard tv antenna amplifier reviewtvantennas

You need to login to post a comment.