Jquery clones an element block. select item valid

Here is the rest of my problem http://jsfiddle.net/WsFyV/7/ Choose any option from the first. and then click "Add." The select element is cloned, but with the value selected in the first, My main problem is that you cannot select any other option in the new select element. Am I doing something wrong?

I have a fix.

$.uniform.update("select");

did the trick. http://jsfiddle.net/broncha/WsFyV/34/ theres fix on select onchange element :) thanks guys

+2
source share
2 answers

. , , , - .

+1

, $.uniform.update("selector") $('selector').uniform() .

, , .selector select :

// clonedObject is a jQuery object containing our cloned select
clonedObject.closest('.selector').replaceWith(clonedObject);
clonedObject.uniform();

, - .

+2

All Articles