Posted By

brianyang on 09/24/09


Tagged


Versions (?)

duplicate select options on change


 / Published in: jQuery
 

  1. var firstSelect = $('select').val();
  2. var secSelect = $('select').eq(1).val();
  3.  
  4.  
  5.  
  6. if ($('select').change(function() {
  7. $('select').eq(1).val(firstSelect);
  8. })
  9. );

Report this snippet  

You need to login to post a comment.