can u change the color background of a text box when it has been changed/edited by the user?


Ad

Advertisements

E

Evertjan.

libsfan01 wrote on 14 apr 2006 in comp.lang.javascript:
How/can you do this?

[Please always repeat your question in the text and do not use sms
shortenings on usenet]
"can u change the color background of a text box when it has been
changed/edited by the user?"

<style>
input { background-color:expression(value!=defaultValue?"cyan":"");}
</style>

This is IE-only.

=============================================

cross browser:

<input
value='start'
onkeyup='this.style.backgroundColor=
(value!=defaultValue)?"cyan":""'>
 
Ad

Advertisements


Top