【转】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');
});

浙公网安备 33010602011771号