Hello all I have this function:
<SCRIPT LANGUAGE="JavaScript">
function Unselect(sbox)
{
var i = 0;
for(var i=0; i<sbox.options.length; i++)
{
sbox.options.selected = false;
sbox.options.selectedindex = -1;
}
}
</SCRIPT>
This works in netscape 4.x ie5.x ie 4.x ns6.x but does not work in IE6
I'm calling this function to unselect anythign thats is selected in a <SELECT NAME=blah size=10> box.
Can anyone help me to find a way to do this in IE 6?? as well as all 4.x browsers and higher?
<SCRIPT LANGUAGE="JavaScript">
function Unselect(sbox)
{
var i = 0;
for(var i=0; i<sbox.options.length; i++)
{
sbox.options.selected = false;
sbox.options.selectedindex = -1;
}
}
</SCRIPT>
This works in netscape 4.x ie5.x ie 4.x ns6.x but does not work in IE6
I'm calling this function to unselect anythign thats is selected in a <SELECT NAME=blah size=10> box.
Can anyone help me to find a way to do this in IE 6?? as well as all 4.x browsers and higher?