[Demo] jQuery Clone Example

[Demo] jQuery Clone Example

HTML

<input type="text" id="x"/>
<div id="n"></div>
<button id="y"> somesome
</button>

JavaScript

$(document).ready(function () {
   $("#y").clone().appendTo($("#n"));
   //Pls check that the appended button is now present in the text box but it is not visible
});