【转】jQuery改变兄弟元素样式

原文地址:https://www.cnblogs.com/mxh1099/p/4931041.html

$(".paneltime li").click(function(){
  var liParent = $(this).parent();
  var brother = liParent.children();
  var orderType = $(this).attr('orderType');

  brother.removeClass('active');
    $(this).addClass('active');
});

 

posted @ 2020-04-16 10:38  花影疏帘  阅读(465)  评论(0)    收藏  举报