Комментарии:
How to make it even shorter, like using .toggle() method, so that active class only gets added first then removed (when clicked)?
ОтветитьShort easy and simple guide to a very useful functionality.
Ответитьप्रकाश
Ответитьwow, so easy and great! thanks a lot!
ОтветитьCan someone explain me why We first remove active class from all buttons and then again add on all buttons
ОтветитьBest
ОтветитьFinally, the answer I have been looking for. Thanks.
ОтветитьThank u Very much bro. this Helped me to complete my assignment.....
ОтветитьI need to add a class to a class without id without click or any mouse event
ОтветитьShort easy and simple guide to a very useful functionality. 👌
Ответитьwaw man, this is very very simple, I googled almost everything a little bit complicated, but your solution is very simple and easy to understand 😃
Ответитьthank you so much sir it really helped me and please do make such helpful videos whenever you get time.
Ответитьhow to save the selected class active in localStorage ?
ОтветитьI agree with all the praise! On the whole internet so many difficult and not working solutions, and yours is a gem out there. So happy to find you. Good luck there!
Ответитьbrother really really thanksss :}:}:}
ОтветитьThank you SO MUCH! This is what I've been looking for for a long long time!
Ответитьwhy to use this keyword ,explain this
Ответитьwhy use forEach loop 2 times?
Ответитьthank you so much
ОтветитьThank you so much
ОтветитьHey man, thanks a lot for this brilliant solution!!!
Ответить✔✔✔
ОтветитьNice... But need more explanation why and how it is working... It will help beginner like me. And do this same thing using array map method please. Video length doesn't matter we need clear explanation.
ОтветитьThank bro! You bought me a lot of Time. Good Luck
ОтветитьI am really feeling an idiot, why I didn't think in this way before watching this video. Thank you so much, it helped a lot
Ответитьgood and quick solution!
Ответитьgood explanation thank you!
ОтветитьWhere is active class in html page
ОтветитьThank you Sir! Awesome useful tutorial.
Ответитьman, I have been looking for this for ages. your solution is so simple and most importantly WORKING!!! thank you!!!
Ответитьcreate video. Question. where did you get the 'btn' from? I am a little confused because 'btn' is not in the html or css. is 'btn' a variable?
Ответить