I am using the this Nestable script and I need the ability to add a link to the movable navigation items and make it clickable.
Currently when I add a link to the <li>
item the whole navigation tries to move as it is part of the jQuery code. I need the ability to ignore the jQuery if the item is a physical link <a>
.
I hope someone can help.
Thanks
Just a guess, but cancelling the propagation on the click
$("li a").on("click", function(event) {
event.stopPropagation();
});
It might be mousedown instead of click
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.