Profile
Achievement
iqwebdev's Recent Snippets
- All /
« Prev 1 Next »
Make sure you change username.json to your actual username and #twitter to the actual selector you wish to update.
3
651
posted 14 years ago by iqwebdev
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
671
posted 14 years ago by iqwebdev
Very easy way to preload images which are needed later (e.g. when a hover is performed)
4
939
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
783
posted 14 years ago by iqwebdev