How to set dropdown list by another dropdown list

Posted by NewGuy on Stack Overflow See other posts from Stack Overflow or by NewGuy
Published on 2010-04-09T14:08:18Z Indexed on 2010/04/09 14:13 UTC
Read the original article Hit count: 421

Filed under:

I have two dropdown list (let's say there ids are ddl1 and ddl2). How can I set dropdown list 1 (ddl1) equals dropdown list 2 (ddl2) in jQuery?

Something like: $('#ddl1').val()=$('#ddl2).val()

Thanks in advance.

© Stack Overflow or respective owner

Related posts about jquery-selectors