You can create nodes after cloning, for example:
var temp = $('<select/>'); $('<option/>').val("").text("").appendTo(temp); for (var i = 1; i < 256; i++) { $('<option/>').val(i).text(i).appendTo(temp); } temp.children().clone().appendTo('.mask');
Instead of making many separate additions to the DOM (which is very expensive), it combines all the elements in the document fragment and then clones them, adding packages (one batch of your choice).
Nick craver
source share