The test found that the jquery clone method of textarea and select has a problem. When the textarea and select values are cloned, they will be lost. This is a bug of jquery, you can see the code, which is relatively simple. In the clone operation, the val value is assigned again. If you know this, you can simply write it yourself.
The clone page you want to use is OK.
Jquery. fix. clone. js
(Function (original) {jQuery. fn. clone = function () {var result = original. apply (this, arguments), my_textareas = this. find ('textarea '). add (this. filter ('textarea '), result_textareas = result. find ('textarea '). add (result. filter ('textarea '), my_selects = this. find ('select '). add (this. filter ('select'), result_selects = result. find ('select '). add (result. filter ('select'); for (var I = 0, l = my_textareas.length; I <l; ++ I) $ (result_textareas [I]). val ($ (my_textareas [I]). val (); for (var I = 0, l = my_selects.length; I <l; ++ I) result_selects [I]. selectedIndex = my_selects [I]. selectedIndex; return result ;};} (jQuery. fn. clone );