My Code:
$("#droppable").droppable({
drop: function (event, ui) {
$(this).addClass("ui-state-highlight").
find("p").
html("Dropped!");
}
});
This was just a dummy to check whether my droppable function is working or not. It is working, but only once. I need it to be recursive so that I can drag and drop elements on it as many times as I want.
It might by happening just make the indication like this
$(this).addClass("ui-state-highlight").find("p").html("Dropped!")
.delay(1000).html('').removeClass("ui-state-highlight");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.