[jQuery] Tab Active開啟或關閉
不錯的方式
$(this).addClass('active').siblings().removeClass('active');
參考
- http://stackoverflow.com/questions/12687085/jquery-remove-class-if-other-element-is-clicked
$(this).addClass('active').siblings().removeClass('active');
參考
- http://stackoverflow.com/questions/12687085/jquery-remove-class-if-other-element-is-clicked
留言