Changing Style Class in Netscape
I created a custom textbox control in .NET, which calls a javascript function whent he control gets the focus. The function get's the contorls css className then adds the word "_Selected" on the end
So a control whose cssClass (className) is "textBox", would then have it's className changed to "textBox_Selected".
Everything works fine in Internet Explorer, but not in Netscape. So I was curious if anyone new why?
Here is the javascript function
VB Code:
function activeField(ptr)
{
'Get the current cssStyle
var myClass = ptr.className;
if((ptr.disabled != true) && (ptr.readOnly != true))
{
'Append '_Selected' to the current cssStyle
ptr.className = myClass + '_Selected';
}
}
When the control get's the focus, the color just changes to white, however, it should change to a light brown.