jQuery mouseover and mouseleave drop down menus

前端 未结 4 1870
-上瘾入骨i
-上瘾入骨i 2021-02-15 15:48

The following displays a menu:

ONZE WAARDEN

4条回答
  •  借酒劲吻你
    2021-02-15 16:15

    Is this what you are trying to do?

    HTML

    
    

    Javascript

    $('.main-menu').mouseenter(function(){
      $(this).find('.sub-menu').slideDown();
    });
    
    $('.main-menu').mouseleave(function(){
      $(this).find('.sub-menu').slideUp();
    });
    

提交回复
热议问题