Highlighting automatically a word

Highlighting automatically a word

by Fabio Oesch -
Number of replies: 1

Hello everyone,

So I'm having an other problem. I would like to highlight text which has been inserted into a textbox.
I suppose this has to be done with JavaScript or is there any other way, because I don't know anything about YUI.

Any help will be appreciated and thank you in advance for your help.

Fabio 

Average of ratings: -
In reply to Fabio Oesch

Re: Highlighting automatically a word

by Frank Ralf -
Hi Fabio,

You could try using the CSS pseudo class :focus for the input field, like so:

input[type="text"]:focus {
background-color: yellow;
}

However, there might already be some JavaScript working under the hood which might infer with this approach.

hth
Frank