I make an element on a page with mouse click somewhere on the page by inputting something like this to the document:
$("#sheet").append('<input class="elements" id="Button12" type="button" value="button" />');
But I don't want to be clickable for a while,so I can disable it:
$(".elements").prop('disabled', true);
But the problem is, I want this element to be draggable so I can move it on the page, I tried this but doesn't work:
$('.elements').draggable
({
containment: "#frame",
grid: [5,5]
})
How can an element be draggable while it is unclickable?