I have several draggable & droppable elements on my page, which have accept
properties.
Currently my code is set up like:
$(".answer." + answer).draggable({
revert: "invalid"
, snap: ".graph"
});
$(".graph." + graph).droppable({
accept: ".answer." + answer
});
Therefore if the answer isn't correct, its reverted to its original position.
The user also needs the ability to reset all on the page. I've tried the following, but it doesn't work:
$("btnReset").click(function(){
$(".graph.A").draggable({revert:true});
});