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

x
?
Solved

textbox auto select

Posted on 2007-10-19
2
Medium Priority
?
242 Views
Last Modified: 2010-05-18
hi,
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

http://youtube.com/watch?v=bWzA4x3kEac&feature=dir

once you click inside the textbox all gets automatically selected.

thanks
0
Comment
Question by:djsoltan
2 Comments
 
LVL 23

Accepted Solution

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

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

Author Comment

by:djsoltan
ID: 20112687
thank you :)
0

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