Clear SELECT (multiple)
Posted: Sat May 14, 2005 10:36 am
Hi all!
I'm having a problem with multiple SELECT. I need the javascript code to clear the field if there's already something selected.
As you can see, there are already some options selected. What can I do if I want to send value as if there weren't anything selected?
I've already tried these but no luck:
Thanks in advance 
I'm having a problem with multiple SELECT. I need the javascript code to clear the field if there's already something selected.
Code: Select all
<select name="e;nVїperm_lang]ї]"e; id="e;perm_lang"e; class="e;normal"e; size="e;4"e; multiple="e;multiple"e;>
<option value='1' selected='selected'> Czech</option>
<option value='2' selected='selected'> English</option>
<option value='3' > French</option>
<option value='4' > German</option>
<option value='7' > Swedish</option>
</select>I've already tried these but no luck:
Code: Select all
perm_lang.value = undefined;
perm_lang.value = "e;"e;;
perm_lang.value = new Array();