P
Per Magnus L?vold
Hi!
I'm working on a JSP application, and wish to define a text-field so
that it becomes marked (highligted) when it obtains focus.
I've tried giving the text-field a value when it obtains focus, but
the value is not marked. So if i wish to alter the value, I have to
manually delete the given 'onFocus' value before I set a new value.
<INPUT TYPE=TEXT NAME=test size=30 onFocus=\"this.value='I want this
to be highlighted!'\">
I'm missing something to highlight the text-field text in the code
above.
Hope someone can help me!
Regards,
Per Magnus
I'm working on a JSP application, and wish to define a text-field so
that it becomes marked (highligted) when it obtains focus.
I've tried giving the text-field a value when it obtains focus, but
the value is not marked. So if i wish to alter the value, I have to
manually delete the given 'onFocus' value before I set a new value.
<INPUT TYPE=TEXT NAME=test size=30 onFocus=\"this.value='I want this
to be highlighted!'\">
I'm missing something to highlight the text-field text in the code
above.
Hope someone can help me!
Regards,
Per Magnus