What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-19 01:29:18
toggle one class add and one class remove same time and after click remove class add and add class remove jquery
$(".nav-link").click(function () { // If the clicked element has the active class, remove the active class from EVERY .nav-link>.state element if ($(this).hasClass("active")) { $(".nav-link").removeClass("acti... Add solution -
Javascript 2021-10-30 07:52:20
has not class jquery
if (!$(this).hasClass("test")) { Add solution -
Javascript 2021-10-29 18:46:12
jquery :not class
if (!$(this).hasClass("test")) { Add solution -
Javascript 2021-08-29 18:55:01
toggle jquery remove others
$(".nav-link").click(function () { // If the clicked element has the active class, remove the active class from EVERY .nav-link>.state element if ($(this).hasClass("active")) { $(".nav-link").removeClass("acti... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5