How to remove a list option item in a select field?
<p>I have the following code:</p>

<pre><code>function removeUsers()
        {

            var removedUsers = document.getElementById('&lt;%=removedUsers.ClientID%&gt;');
            var lbCurrent = document.getElementById('&lt;%=lbCurrent.ClientID%&gt;');

            if (lbCurrent &amp;&amp; lbCurrent.selectedIndex != -1) 
            {
                for(i=lbCurrent.length-1; i&gt;=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();       
        }
</code></pre>

<p>This is causing me problems in firefox:</p>

<pre><code>removedUsers.value += lbCurrent.options(i).value + ";";
</code></pre>

<p>Can someone help??</p>

<p>Thanks</p>
