|
I'm trying to find a way to have all the text in a field highlighted when the field is clicked. I'm thinking it will have something to do with the onFocus event handler, but I'm not sure.
Basically, I have a text field in a form. When the form is loaded it has default text inside of it. I want all the text to be highlighted when someone clicks inside the textbox. Kind of like what happens when you click on the address bar at the top of an IE browser.
I've searched Google, but I can't find anything.
Please help. :-)
-J2
|