Styling the selection color of an input type=text, possible?
- by Tommy
Having an input
<input type="text" id="myTest" value="bla bla bla"/>
and doing this (using jQuery)
$('#myTest').select();
causes "bla bla bla" to be selected with default dark blue selection color.
Now, is there any way I can change this color using css? css3 can change selection using for instance
::-moz-selection {
background: #ffb7b7;
}
but this only works on text in other elements, not in html inputs.
Any ideas?
/T