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();
$('link-click').trigger('click');
$('.link-click')[0].click();
. . fiddle. ? , demo.js ? -
demo.js
.click(function(e) { e.preventDefault(); .... });
? preventDefault() , . , , , ? active_menu_cb?
preventDefault()
active_menu_cb
Source: https://habr.com/ru/post/1599609/More articles:cl-ppcre reader in let-over-lambda - macrosBox shadow on adjacent elements with variable width - htmlC ++ is equivalent to Python "if x in [string1, string2, ...]" - c ++OpenCV: good learning outcome, but cascading classifier - opencvHow to generate graph graph and equilibrium graph? - rConsuming RabbitMQ messages with Spark streaming - scalaHow can I "connect to the main database" (Azure SQL database) - azureError. An incorrect or corrupt jarfile occurred while trying to create a PredictionIO recommendation mechanism on a Linux machine. - linuxChange dynamic content Smalltalk Pharo TextMorph - smalltalkПосле импорта данных выборки 1.9.1.0 не может войти в систему admin, нет администратора пользователя в базе данных? - magento-1.9All Articles