title: How do I clear all options in a dropdown box?
body: <p>My code works in IE but breaks in Safari, Firefox, and Opera. (big surprise)</p>
  
  <pre><code>document.getElementById("DropList").options.length=0;
  </code></pre>
  
  <p>After searching, I've learned that it's the <code>length=0</code> that it doesn't like.<br>
  I've tried <code>...options=null</code> and <code>var clear=0; ...length=clear</code> with the same result.</p>
  
  <p>I am doing this to multiple objects at a time, so I am looking for some lightweight JS code.</p>