Get option.remove work in firefox javascript only
<p>I have an class remover that works just fine in IE och Chrome, wont get any errors but in firefox. it dosent work at all.
Just get an error thats thas remove is not a function.</p>

<p>I been trying different ways to make it work, but none of them removes the class.</p>

<pre><code>function removeDice(){
 document.getElementsByClassName("dice")[0].remove(0);
}
</code></pre>

<p>An nice function that lets me remove dice classes one by one...
works in chrome but not firefox.</p>

<p>Been reading different methods here in stackoverflow and tried this</p>

<pre><code>document.getElementById("dice").className =
   document.getElementById("dice").className.replace
      ( /(?:^|\s)MyClass(?!\S)/g , '' )
</code></pre>

<p>But no luck either.
Any tips ?</p>

<p>Thanks</p>
