jquery - how could prevent clicked link when I move links with drag&drop? -


I move some elements inside the link ( a ) Drag and drop) allows the user to leave it, it redirects the browser to href moved element. How can I allow that element to be clicked and dragged? I use the plugin.

You prevent default behavior from taking action on links, buttons and likes preventDefault () ; By using $ (".selector") .draggable ({stop: function (event, ui) {// Some things have ended when you drag your element event. PreventDefault ();}});

Check for more information.

Comments