M
Mad Joe
For some reason, I have to change border style of an input field
frequently, and I'd like to make some events (onFocus & onBlur)
depending of the style of border of that input.
The following code is not working, but how to change it to make it possible?
<input name="name" type="text" id="name" value="0"
onFocus="if (this.style.borderBottomStyle == 'dashed') this.value='X'"
onBlur="if (this.style.borderBottomStyle == 'dashed') this.value='Y'">
frequently, and I'd like to make some events (onFocus & onBlur)
depending of the style of border of that input.
The following code is not working, but how to change it to make it possible?
<input name="name" type="text" id="name" value="0"
onFocus="if (this.style.borderBottomStyle == 'dashed') this.value='X'"
onBlur="if (this.style.borderBottomStyle == 'dashed') this.value='Y'">