Hi all, I have the following styles in my CSS:
.on_focus {
background-color:yellow;
}
.off_focus {
background-color:white;
}
Then I have this input in my form:
<label>Last Name</label><br/>
<input id="l_name" class="text" type="text" name="l_name" maxlength="20" onfocus="this.className='on_focus'" onblur="this.className='off_focus'"/><br/><br/>
This works great in Fire Fox but does not work at all in IE. In IE the background color never changes, it is always white regardless if the field has focus or not. What is the deal here?