Clear all optgroups and options from a select list
- From: "Brian D" <bdaltilio@xxxxxxxxx>
- Date: 4 Aug 2006 12:28:40 -0700
I have a multiple select list that is created dynamically based on a
previous selection on an asp page. The first thing I do is to clear
the curent option list by
document.form1.itemcross.length = 0;
The only problem is that it leaves the optgroups. How do I also get
rid of the optgroups?
Thanks
BrianD
.
- Follow-Ups:
- Re: Clear all optgroups and options from a select list
- From: RobG
- Re: Clear all optgroups and options from a select list
- From: darwinist
- Re: Clear all optgroups and options from a select list
- Prev by Date: reset a form element
- Next by Date: MS IE Javascript document.lastModified seasonal errors of one hour each way?
- Previous by thread: reset a form element
- Next by thread: Re: Clear all optgroups and options from a select list
- Index(es):
Relevant Pages
|