Adding active class to menu when section changes

前端 未结 0 1687
后悔当初
后悔当初 2021-01-02 00:26

when i scroll the page, i want to add class active menu item. i can get the current div id like this var currSection = $(this).attr(\'id\'). im stuck with id and data-id mat

相关标签:
回答
  • 消灭零回复
提交回复
热议问题