Profile
Achievement
iqwebdev's Recent SnippetsTagged forms
- All /
« Prev 1 Next »
A jQuery snippet to make form inputs show a help message which disappears on click (and comes back when the user enters nothing). Give your input the classes ‘remember’ to activate the snippet and (optionally) ‘unfocused’ as a CSS hook for ch...
2
715
posted 14 years ago by iqwebdev
Replace “value†with the default value. If the field is selected, the default value will go away. If the user has previously changed the field value, it’ll be left alone.
Alternatively, use onfocus=â€this.value=â€;†to always clear the f...
1
838
posted 14 years ago by iqwebdev