Ciao a tutti.
io dovrei fare una cosa del genere.
<input type="text"> border-color:red [onchange se campo è!= '' border-color=green]
l'ho spiegato così se non sono stato chiaro ditemelo![]()
Ciao a tutti.
io dovrei fare una cosa del genere.
<input type="text"> border-color:red [onchange se campo è!= '' border-color=green]
l'ho spiegato così se non sono stato chiaro ditemelo![]()
Prova cosi. non sono sicuro che vadi con this :P al massimo metti un document.getElementById
Ciao Matteofunction ColoreBordo(){
if (this.value=='')
this.style.cssText = "BORDER-RIGHT: red thin solid; BORDER-TOP: red thin solid; BORDER-LEFT: red thin solid; BORDER-BOTTOM: red thin solid";
else
this.style.cssText = "BORDER-RIGHT: green thin solid; BORDER-TOP: green thin solid; BORDER-LEFT: green thin solid; BORDER-BOTTOM: green thin solid";
}