[Demo] jQuery Clone Example
[Demo] jQuery Clone Example
HTML
<input type="text" id="x">
<button id="y"> somesome
</button>
JavaScript
$(document).ready(function () {
$("#y").clone().appendTo($("#x"));
//Pls check that the appended button is now present in the text box but it is not visible
});