I recently created a mobile navigation using jQuery as part of the drop-down function, you can see the code here:
http://jsfiddle.net/senff/9cK3X/3/
However, when I tried to add it to my WordPress site, I had no luck. Here is the code I added to my HEAD:
jQuery('ul.menu > li > a').click(function(e) {
jQuery('ul.sub-menu').slideUp('normal');
if(jQuery(this).next('ul.sub-menu').is(':hidden') == true) {
jQuery(this).next('ul.sub-menu').slideDown('normal');
}
e.preventDefault();
However, it does not seem to be working. Here is the website it's being used on (pull your browser small to see the mobile nav):
http://www.mcfaddengavender.net/newmg/
Any idea what I'm doing wrong?
Thanks guys!