how to remove all the options from select control in html using java script?
JavaScript remove all items
<html> <script language="javascript" > function removeAllItems(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { selectbox.remove(i); } } </script> <form name="list"> <select id="item" NAME="item"> <option value="one">One</option> <option value="two">two</option> <option value="three">three</option> <option value="four">four</option> <option value="five">five</option> </select> <br> <input type="button" value="Remove All Item" onClick="removeAllItems(item);"> </form> </html>