I have made a drag drop functionality using JQuery, it is working well when applied on static records, as I am using ajax call and updating the div with several records, but Drag functionality is not working on dynamically created records.
at first I am populating my div with records, and after this I am running my code to make divs draggable,
after trying lot, I put an alert after the below code. and drag drop works fine, but when I remove only the alert statement, again it does not work.
what may be the reason?
$(window).load(function() {
$(".dragable").draggable({
cancel: "a.ui-icon",
revert: true,
helper: "clone",
cursor: "move",
live: true,
revertDuration: 0
});
});
alert("Drag code executed.");