I am using some jquery in my code:
$('li.dropdown-toggle').on('hover', function () {
$(this).find(".submenu").slideToggle(400);
});
It works fine when I link to 1.7.2 jquery library (https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js).
Unfortunately the website needs 3.1.0 library (https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js).
How can I modify the code without swapping libraries to make sure it works fine?
just in case, here is the fiddle - it works ok in this fiddle, but when I change the library to 3+ it stops working
Thanks