Also Watch This : Add Remove Active Class Based On URL Using Javascript only
Video Url :
——————
Enroll My Course : Next Level CSS Animation and Hover Effects
——————
Join Our Channel Membership And Get Source Code Everyday
Join :
——————
Please LIKE our Facebook page for daily updates…
Nguồn: https://potomacstewards.org/
Xem thêm bài viết khác: https://potomacstewards.org/tong-hop/
Watch This : Add Remove Active Class Based On URL Using Javascript only
Video Url : https://www.youtube.com/watch?v=BI3kNsTruWo
song?
Thank you so much
Thanks 👊👊👊
ho w r u
my page going refresh after click on menu li where is the problem?
it's not working
thanks
It works only because you didn't added href
If you do add a link to another page it will reload the script and the Home page will still have the class active.
I even tried to make the navbar in a separate folder and add it to each page with php code "require" and I still get same result.
Am I doing something wrong?
Thank You so much i am making a website, thepurplelounge.com, and this was very helpful. feel free to check it out and give feedback on the current product on my insta @purplounge
siblings().removeClass() is not doing his job
why i cant change color
Video is upto the point.. Wonderful liked it
thanks a lot. nice
nice one pro
Will this work during page reload?
Plz help me ,
How can i addclass with page load
Thank you <3
🙂
this jQuery sir, i need pure js.
I think you should have made this with "pure JavaScript", with querySelectorAll. And to code toggle classes there is a method that I cannot remember right now.
thank you
I was hoping for a pure/ vanilla javascript solution.
is there pure javascript alternative solution ?
Hi, can you tell me for what you add position: relative to “a” element ?
so jquery and JS are brothers??
Fine but how to do that from sub menu items?
I think i'm starting to have feelings for you
5:41 bookmark – full code
thanks…
Thanks for your video.
Nome da música?
It's not working if the page loads to another link but should work.
thank you for this video 🙂
code?
thanks…….bro
not working
Thankyou for saving my time buddy (y)
Sir I have faced some problem while using this code…whenever I navigate to another link it will not work….so please do something…