How can I copy all options of one select element to another? Please give me the easiest way, I\'m allergic to looping.
options
select
Please help me. Than
use jQuery foreach?
$("#the-id option").each(function() { var val = $(this).val(); var txt = $(this).html(); $("the-other-id").append( $('').val(val).html(txt); ); });