/    Sign up×
Community /Pin to ProfileBookmark

I would like to add a second option to this dependent dropdown menu, how?

Please help me. I am a novice to java Script and cant figure out how to make a second option field dependant on the first. I would just like to modify this code to add a second option field. How can I do this?

[url]http://javascript.internet.com/form…-drop-down.html[/url]

Here is an example.. I sell cafe furniture on my website. Depending on the paticualr table style sizes and colors will vary in what they can be purchase in.

I would like the user to be able to pick the style of table top they want, and then based on that style they would choose from two drop down menus that would populate with dropdown menu one with the special colors and then dropdown menu two with the special sizes.

Thank you very much for the help!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@shawnlgauthorAug 08.2003 — Thank you for your help. That solution is not quite it. What you gave me is like A+B=C where I need something like this: The result of the user choice = two new choices dependent on the result of the fitst choice. All the choices will go into a form for quoting the customer a price for table tops.

Say the customer chooses an "Expresso" style table; "Espresso" Style tables only come in three sizes and two colors, based on their choice the customer will get information in two new dropdowns. One will list the sizes of the tables and the other will list the colors of the tables.

Other styles of tables come in varying sizes and colors so this is why we need to have a way for the customer to choose their colors and sizes based on those tables they choose.

This link is almost what I need accept I need a second dropdown menu based on the resul of the first choice. So two new choices based on the result of the first choice.

http://javascript.internet.com/form...-drop-down.html


Thanks for your help!!
×

Success!

Help @shawnlg spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...