Link to home
Start Free TrialLog in
Avatar of Zado
ZadoFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Dropdown list with subcategories

Hello Experts!


Do you know any script for do this:

1. you have for example 5 dropdown lists and just first one active
2. you choose an option from first list, and then second list activates (with options related to the selection from first list)
3. so each option from first list has different list in second option
...and same rule for other options.

For now I use mysql and very unflexible script for that, and it's quite work consuming to change anything.


Thank you for any help.
Avatar of Zado
Zado
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Would be useful also to mark the options (display in grey or something) which don't contain any subcategories, but not necesarily.
ASKER CERTIFIED SOLUTION
Avatar of StealthyDev
StealthyDev

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zado

ASKER

Yes, I'm using this one currently ;-) And you have to change database records (create new tables etc) to add more lists, I don't want use database for that.

Thanks for help anyway.
Avatar of StealthyDev
StealthyDev

What do you want to do?

You will give an array of values in JavaScript? Instead of DataBase ?
Avatar of Zado

ASKER

Well, I thought about that, but it seems to be a bit silly idea. Eventually I can use the current script, but I can't manage to make 5 dropdown menus instead 3.
What is your problem, you can have any number of AJAX functions and any number of AJAX pages..

Send your code, we will assist you.