Hi
If I have a text box or a textarea on a form that is dynamically pre-populated, is it possible in HTML, CSS or Javascript to specify just a portion of the text to be highlighted (ideall with the field having focus)?
For eg:
If I have a text box on a form with the followin pre-populated:
aa bb cc
Can I have it so that the text (between the * in the example) is highlighted as though the cursor had been dragged across it? :
aa *bb* cc
Thanks
-Colin
If I have a text box or a textarea on a form that is dynamically pre-populated, is it possible in HTML, CSS or Javascript to specify just a portion of the text to be highlighted (ideall with the field having focus)?
For eg:
If I have a text box on a form with the followin pre-populated:
aa bb cc
Can I have it so that the text (between the * in the example) is highlighted as though the cursor had been dragged across it? :
aa *bb* cc
Thanks
-Colin