Answers for "jquery droppable allow what can be dropped"

0

jquery droppable allow what can be dropped

$(".droppable").droppable({
    accept: function(d) { 
        if(d.hasClass("foo")||(d.attr("id")=="bar")){ 
            return true;
        }
    }
});
Posted by: Guest on January-09-2021

Code answers related to "jquery droppable allow what can be dropped"

Code answers related to "Javascript"

Browse Popular Code Answers by Language