Select a value in another dropdown based on selection in first with Javascipt / jQuery

Hi

I have a dropdown box, with a range of values (1 week - to 12 weeks)

When someone selects 6 weeks or less (1,2,3,4,5,6 weeks) I need to make a selection in another drop down box.

I have to do this client side so would have to do it with JavaScript or jQuery.

Can anyone help.

Andy
LVL 3
Andy GreenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom BeckCommented:
Seems like there should be more to it but, have a look at this jsFiddle example.

http://jsfiddle.net/tommyBoy/5k49mh82/2
0
Andy GreenAuthor Commented:
Thanks Tom, sorry for delay in responding - its a developers life...

I'll have a play later today, but looks promising, at least its got me started.

Only change to make is not to make a selection if > 6 Weeks.

Andy
0
Andy GreenAuthor Commented:
The link no longer works :-(

Andy
0
Tom BeckCommented:
Not sure what happened there. Same link without my username works.

http://jsfiddle.net/5k49mh82/2/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andy GreenAuthor Commented:
Great starting point, all working thank you.

Andy
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.