how to clear dropdownlist item using javascript

How to clear dropdownlist contorl using Javascript

How to remove dropdownlist item in Javascript

Clear Items from Drop Down using Java script

Solution

Try following code on your javascript

document.getElementById("DropDownList1").options.length = 0;

Note :-  DropDownList1 is a id of your dropdownlist

About the Author

avatar