I have tried to write a very simple code of jquery to append an element. Here is an example code -
<script type="text/javascript">
var v=$("strong");
$(document).ready(function(){
$("button").click(function(){
$(".c1").append($ (v) );
});
});
</script>
What happens here, the content of <div class="c1"> appears just once with multiple click. Instead of jQuery object, if I put html content then it appears as many as I click the button. I want to do the same thing with Object.
I started learning jQuery just today. So any sort of suggestion will be helpful.