How to get current data of elements while cloning using jquery. While cloning, it's copy's only the default data in the elements.
Here is the code
souRce.clone()
.prop('id', newName)
.html(function () {
return $(this).html().replace(RegExp(PrevID, 'g'), newName);
})
.appendTo(DestiNation);