Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Hide/Show on click jquery

$('.inner-sub-down').on('click', function() {
    if (!$(this).parent().next(".column-link").hasClass('show')) {
      $('.column-link').removeClass("show");
      $('.left-menu-heading').removeClass('show');
    }
    var $subMenu = $(this).parent().next(".column-link");
    $subMenu.toggleClass('show');
    $(this).parent().toggleClass('show');

    return false;
  });
Source by htmlcheatsheet.com #
 
PREVIOUS NEXT
Tagged: #click #jquery
ADD COMMENT
Topic
Name
7+3 =