Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  

plz solve my query?



Share on Google+Share on Google+

Ali Ahmad
plz solve my query?
1 Answer(s)      6 years and 6 months ago
Posted in : JavaScript Questions

how to remove all the options from select control in html using java script?

View Answers

February 22, 2011 at 11:51 AM

JavaScript remove all items

<script language="javascript" >

function removeAllItems(selectbox)
var i;
<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>
<input type="button" value="Remove All Item" onClick="removeAllItems(item);">


Related Tutorials/Questions & Answers: