This one has stumped me. If you have two select tags (see this demo), both with all of the same options, how would you write a script to go the next option in the second select tag, if the user selects the same option in both selects.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Tom Hubbard’s solution didn’t work for me, the values switched around strangely at times. For me this worked:
You’d need to add something you check you didn’t select the last value in both lists, however.
Fiddle: http://jsfiddle.net/h4aLc/2/