How to remove all elements of select in JavaScript
I have a select type element,like follows:
<select size="8" name="selUser" style="width:250" multiple>
<option name="1" value="1">1</option>
.....
<option name="5" value="5">5</option>
</option>
<input type="button" name="del" onclick="delall()">
I want to realize this function: when click button,the content of select is all removed.
How to realize this function?
Thanks in advance!
|