jquery.fix.clone icon indicating copy to clipboard operation
jquery.fix.clone copied to clipboard

Does not work for multiple selects

Open novalis111 opened this issue 13 years ago • 0 comments

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.

novalis111 avatar Aug 03 '12 13:08 novalis111