/    Sign up×
Community /Pin to ProfileBookmark

Populate three drop-down lists with javascript/php

I have three select lists that I want to auto-populate with values based on user selection. So let’s say I have select A, B, and C. If user selects A.x from the drop down then B is automatically updated and so is C based on whatever B.x is. Each item in the selects has a value that I’m using to calculate a price total, so it is very important that each drop down is updated accordingly.

I tried implementing this solution: [url]http://remysharp.com/2007/01/20/auto…g-jquery-ajax/[/url] but doesn’t help me since it’s only for two drop-downs (the other solution on that site I cannot implement since I don’t have access to mysql, only to PHP).

Does anyone have any suggestions on how to do this in JavaScript and maybe PHP (no db back-end) … ???

Any help would be GREATLY appreciated.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@ultrasound0000authorFeb 26.2009 — Thanks Jodarecode, I tested the example you provided but it only works for two selects and I need a solution that will update a third one too ...
×

Success!

Help @ultrasound0000 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.4,
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,
)...