[Demo] jQuery Clone Example

[Demo] jQuery Clone Example

HTML

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

JavaScript

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