i need to get multiple circle images when i click button. and i done that with a single image and that is drag-gable one also.
but i need multiple images as per user click the button.
Shall we do that with append function. I am using canvas tag in that. if so how can we implement that.
<script>
$(document).ready(function() {
$('#pink-circle-button').click(function() {
$('#currentCircle').show();
});
});
$(function() {
$( "#currentCircle" ).draggable();
});
$(document).ready(function(){
$("button#pink-circle-button").click(function(){
$("p").append("<canvas id='currentCircle' class='drawCircle'/>");
});
});
</script>
<style>
.drawCircle{border: 2px solid rgb(255, 0, 255);background-color:black; position: fixed; display: none; top: 97px; left: 572px; width: 153px; height: 150px; border-radius: 76.5px 76.5px 76.5px 76.5px;}
</style>
<canvas id="currentCircle" class='drawCircle'/></canvas>
I made something up that does not fulfill your needs as far as I can tell, but it might be a start: http://jsfiddle.net/eGjak/2/.