Created
March 1, 2015 16:01
-
-
Save pigmentGit/00fc249c2bc0a0ce00f4 to your computer and use it in GitHub Desktop.
Show / Hide submenu on click with sompel jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// show sort submenu on click in phone / table | |
$(".hasChild").click(function() { | |
if($(this).hasClass('showUl')) { | |
$('.hasChild').removeClass('showUl'); | |
$(this).removeClass('showUl'); | |
} else { | |
$('.hasChild').removeClass('showUl'); | |
$(this).addClass('showUl'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment