How can I using javascript make clone of some and set his id different from original. Jquery also will be nice.
and set his id different from original. Jquery also will be nice.
Use it:
JQuery
var clonedDiv = $('#yourDivId').clone(); clonedDiv.attr("id", "newId"); $('#yourDivId').after(cloneDiv);