I have a select box that I want to clear all the items out of...eg.
So now I have a function called "clearbox" that I want to make the selection box empty:
I know the function is not right. Any help?
thx
ft
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.
Code:
<select name="selectbox" id="selectbox">
<option value="1">First</option>
<option value="2">Second</option>
</select><br>
<input type="button" onclick="clearbox();" value="Clear">
So now I have a function called "clearbox" that I want to make the selection box empty:
Code:
funcion clearbox () {
obj = document.getElementById('selectbox');
obj.value='';
}
I know the function is not right. Any help?
thx
ft
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.