How To Deselect From Select Box in IE

N

Notorious

The following Javascript line will deselect the currently selected
index of a select box for Netscape and Firefox, but will not deselect
in Explorer 6.

theForm.assignedLic.options[aIndex].selected = false;


Can anyone tell me what the workaround for IE is?

Thanks,
-b
 
M

Matt Kruse

Notorious said:
The following Javascript line will deselect the currently selected
index of a select box for Netscape and Firefox, but will not deselect
in Explorer 6.
theForm.assignedLic.options[aIndex].selected = false;

Is it a single-select, or a multi-select?

In the case of a single select, you can set the selectedIndex to -1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top