Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rebuild a combobox
Message
From
13/06/2001 01:57:06
 
 
To
12/06/2001 13:56:46
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00517192
Message ID:
00518730
Views:
9
>>for (var i = document.myform.subcat.options.length; i >= 0; i--) >>document.myform.subcat.options[i] = null;

>When I use this (or the VBScript equivalent) I get a "not implemented" error >message! Any ideas?

I think the stuff i suggested would work fine.. ok i'll just give it in some brief.
myform is the form name. subcat is the select box which is multiple ex.
select NAME="subcat" SIZE="4" Multiple
option [List of Sub category] /option
/select

now in onchange event of another select just write a func ShowSubcategory(this)

the func definition wud contain this code
--function showsubcategory(elem)
--{
-- for (var i = document.myform.subcat.options.length; i >= 0; i--)
-- document.myform.subcat.options[i] = null;
--}
I hope it'll help
Best Luck..
Nilesh
Previous
Reply
Map
View

Click here to load this message in the networking platform