I have the following code:
function removeUsers()
{
var removedUsers = document.getElementById('<%=removedUsers.ClientID%>');
var lbCurrent = document.getElementById('<%=lbCurrent.ClientID%>');
if (lbCurrent && lbCurrent.selectedIndex != -1)
{
for(i=lbCurrent.length-1; i>=0; i--)
{
if(lbCurrent.options[i].selected)
{
//add the removed user to the removedUsers var
removedUsers.value += lbCurrent.options(i).value + ";";
lbCurrent.options[i] = null;
}
}
}
selectAllItems();
}
This is causing me problems in firefox:
removedUsers.value += lbCurrent.options(i).value + ";";
Can someone help??
Thanks
should be
Assuming
lbCurrent.optionsis anArray.