Profile
Achievement
1man's Recent SnippetsTagged form
- All /
« Prev 1 Next »
Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.
2
1454
posted 15 years ago by 1man
For forms with a default value onload you don't want your users to have to select the value, delete it and then insert their own input.
This function focuses on a selected input, then it selects the default text so the user can easily type their o...
1
913
posted 17 years ago by 1man