Profile
Achievement
![first submission:submitting first snipplet first submission:submitting first snipplet](/img/badge/badge_2.png?v3)
![popular snippet:having a snipplet with 20 favorites popular snippet:having a snipplet with 20 favorites](/img/badge/badge_3.png?v3)
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
1306
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
792
posted 17 years ago by 1man