jquery.fix.clone
jquery.fix.clone copied to clipboard
Does not work for multiple selects
Hi, the cloning does not work for multiple selects, for those you have to clone the value. You can however set the selectedIndex afterwards:
for (var i = 0, l = my_selects.length; i < l; ++i) $(result_selects[i]).val($(my_selects[i]).val()); my_selects.eq(i).prop('selectedIndex', $(result_selects[i]).prop('selectedIndex'));
Taken from here:
http://stackoverflow.com/a/7096897/1196665
Works like a charm.