JQ 使用toggle实现DIV的隐藏和显示

$('.submenuA').toggle(

  function () {
  $(this).next('div').show();
  },

   function () {
  $(this).next('div').hide();
})

原文地址:https://www.cnblogs.com/zgaspnet/p/4330060.html