/    Sign up×
Community /Pin to ProfileBookmark

Dropdown box options as a function of choice in other dropdown

Hi all!

I am very new to JS and would like to use it to automatically populate the options in a dropdown box (“Area”) as a function of a choice made in another box (“Department”). Can anyone help me set this up?

Thanks a bunch!

Natalia

P.S.: Just as an example, if the “Department” field is set to “Microporous Production” I want the “Area” field to have the following options: VMF4, Film 2, Film 1, PES Extraction, and MML. And if “Department” is set to “UF Production”, I want “Area” to be either: Blue Machine, Wide Machine or Hydrolysis.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@HavardNov 27.2002 — [i]Originally posted by Dave Clark [/i]

[B]As someone who is "new to JS," it can be [b][i]quite[/i][/b] challenging to get one of those all set up and working correctly. However, you can go to the top of this page and click on [b]JavaScriptSource[/b] and look in their [b]Navigation[/b] section for a [b]Combined Menu[/b].

[/B]
[/QUOTE]

Not really... or?

As I understand the question NatuScape is looking for a way to change the second dropdown list based on the choice made in the first, while the [i]Combined Menu[/i] section just shows a way to combine the selections of two dropdown lists into one link...

As a coincidence I am looking for the same thing... :o
Copy linkTweet thisAlerts:
@HavardNov 28.2002 — Yep, that's more like it.

Thanks ?
×

Success!

Help @NatuScape 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 4.29,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...