Have an account? Sign in
Login  Register  Facebook
Populate Dropdown based on another Dropdown
I want to create 2 Drop Down boxes so that first we have a dropdown box, and if a user selects any value from it, then the second drop down appears which contains related values based on the selection in first dropdown box.

For example:

Dropdown Box1:

If someone selects Fruits, then next dropdown box appears which has list of fruits (Oranges, Mangos, Blueberry, Grapes)
If someone selects Vegetables then next dropdown box has list of vegetables (Carrots, Sweetcorn, Potatos, Tomatoes.)

Please note that second dropdown should be appear only after selecting a value in First dropdown box.

I will be very thankful for any help with code.
Started: September 19, 2011 Latest Activity: September 19, 2011 form dropdown
1 Answer
Your Answer

xDo you want to answer this question? Please login or create an account to post your answer