Focus and Select a Form Input


/ Published in: JavaScript
Save to your folder(s)

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 own value.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.