Test found that textarea and select the jquery clone method has a problem, textarea and select the value of clone will be discarded, found that this is a jquery bug, can not see the code, relatively simple. It is in clone when the Val re-assignment, if you know this, it is easy to write their own.
It's OK to introduce the clone page you want to use.
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);