i've developed a project using Nice Menus module, but on mobile can't use well with submenus. So i thought to use JS injector to listen swipe on screen and make menu visible.
i wrote this code
$(document).ready(function(){$("#second-column").on("swipe",function(){
if($(window).width()<=900)
$("#nice-menu-1>li>ul").css("display: block; visibility: visible;");
});
});
but chrome console said $ is not a function
so i search and replace $
with jQuery
, now i've no moar message but it doesn't work.
Thanks in advance for help