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?
 
Tom BeckCommented:
Not sure what happened there. Same link without my username works.

http://jsfiddle.net/5k49mh82/2/
0
 
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
 
Andy GreenAuthor Commented:
Great starting point, all working thank you.

Andy
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.