Active navigation with jQuery - can't apply a default class to anchor

前端 未结 4 1401
天命终不由人
天命终不由人 2021-01-06 14:23

I am currently trying to make a navigation-menu where an active-class is applied to the anchors whose href attributes that match the c

4条回答
  •  梦谈多话
    2021-01-06 14:57

    great read.. but, I have to make a suggestion.. even if the JS works perfectly, you really should keep all menu list items within an Unordered List (or Ordered List),.. as a best practice.. :)

提交回复
热议问题