ECGtestJsonAjax
Why do the player names get repeated?
by cneeds
HTML
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
<div id="container">
<div id="Clonit">Click me and I copy to another place</div>
<br /><br /><br /><br />
</div>
<div id="result"></div>
JavaScript
$("#Clonit").click(function() {
$("#result").append($("#Clonit").clone(true));
$("#result > #Clonit").removeAttr('id');
});