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

 

$('.submenuA').toggle(

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

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

posted on 2015-03-11 15:31  张扬个性,敢为天下先  阅读(1402)  评论(0编辑  收藏  举报