Mondeo
Well-known member
Hi,
I want to clear a textbox out when its clicked client side, so ive got
[VB]txtExtraOptionDesc.Attributes.Add("onclick", "if(this.value == Description must be entered) this.value = ;")[/VB]
It works fine.
But I also want to set the backcolor to white, can the onclick support more than one action?
I tried
[VB]txtExtraOptionDesc.Attributes.Add("onclick", "if(this.value == Description must be entered) this.value = ;this.backcolor=white")[/VB]
But it didnt work, then again the syntax may be wrong as im not hot on JS.
I want to clear a textbox out when its clicked client side, so ive got
[VB]txtExtraOptionDesc.Attributes.Add("onclick", "if(this.value == Description must be entered) this.value = ;")[/VB]
It works fine.
But I also want to set the backcolor to white, can the onclick support more than one action?
I tried
[VB]txtExtraOptionDesc.Attributes.Add("onclick", "if(this.value == Description must be entered) this.value = ;this.backcolor=white")[/VB]
But it didnt work, then again the syntax may be wrong as im not hot on JS.