I want the text in the text box to be highlighted when they tab to it. is there a way to do it or do they have to highlight and then start typing. And how do you center buttons? JF
I want the text in the text box to be highlighted when they tab to it. is there a way to do it or do they have to highlight and then start typing. And how do you center buttons? JF
Last edited by Freeman; 10-25-2005 at 03:50 PM.
The easiest way is to use CSS (pseudo class) to apply the highlighting whenever the user sets focus to the form element:
This technique currently does not work in IE6, however.Code:<style type="text/css"> input:focus, textarea:focus{ background-color: lightyellow; } </style>
If I have multiple text boxs inserted on page and I put this on the top of the page will all the text boxs will be highlighted when the change their focus to them?
Last edited by Freeman; 10-27-2005 at 02:09 PM. Reason: Badly worded
Bookmarks