Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


textbox auto select

Posted on 2007-10-19
Medium Priority
Last Modified: 2010-05-18
can anyone tell me how i can get a textbox to be autoselect once a user clicks on it?

check the 'embed' text box in youtube


once you click inside the textbox all gets automatically selected.

Question by:djsoltan
LVL 23

Accepted Solution

basicinstinct earned 2000 total points
ID: 20112588
just add this event handler: onfocus='this.select()'

<input type='text' onfocus='this.select()'/>

Author Comment

ID: 20112687
thank you :)

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question