What makes links not work with the navgoco navigation menu?

I used the jQueryRain demo to create a folding menu with jQuery. When I finished, I realized that none of the links worked. When I went to the documentation page, I found that many users had the same problem .

I looked at StackOverflow and did not find anything that worked. I tried the following:

This redirect after page load

window.location = $(".link-click").attr("href");

They do nothing

$('link-click').trigger('click'); and $('.link-click')[0].click();

+4
source share
1 answer

. . fiddle. ? , demo.js ? -

.click(function(e) {
    e.preventDefault();
    ....
});

? preventDefault() , . , , , ? active_menu_cb?

0

Source: https://habr.com/ru/post/1599609/


All Articles