jQuery add class to current li and remove prev li when click inside li a

后端 未结 7 526
执笔经年
执笔经年 2020-12-28 08:55

here is html:

相关标签:
7条回答
  • 2020-12-28 09:51

    Just add the the class to this like so...

    $(this).addClass('yourClass');
    
    0 讨论(0)
提交回复
热议问题