Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery remove class

$("#div1").on("click", function () {
    if ($(this).hasClass("active")) {
      setTimeout(function () {
        $("#div1").removeClass("active");
      }, 10);
    }
  });
Comment

add and remove class in jquery


$('#menu li a').on('click', function(){
    $('#menu li a.current').removeClass('current');
    $(this).addClass('current');
});

Comment

jquery body remove class

$("body").removeClass("modal-open");
Comment

add and remove class in jquery

$('#toggle li').on('click', function () {
    $(this).toggleClass('open')
});
Comment

jquery remove class

$('#element').removeClass('className');
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to get common elements from two array in javascript using lodash 
Javascript :: javascript random number up to including 2 
Javascript :: array js fill 
Javascript :: js json data undefined 
Javascript :: alpinejs with select 
Javascript :: js add text after div 
Javascript :: select in react with nchange 
Javascript :: ref focus not working vue js 
Javascript :: require a json as a string 
Javascript :: alphabet to number javascript 
Javascript :: tribonacci sequence javascript 
Javascript :: countdown in js 
Javascript :: finddomnode is deprecated in strictmode 
Javascript :: push data to firebase javascript 
Javascript :: javascript filter array of objects by key 
Javascript :: replace object in array with another array with same id javascript 
Javascript :: post method 
Javascript :: Create MD5 hash with Node.js 
Javascript :: javascript add data to form 
Javascript :: how to get all the voice channels in discord js 
Javascript :: Use Multiple Conditional Ternary Operators Javascript 
Javascript :: how to get key from value in javascript 
Javascript :: simple alert program in javascript 
Javascript :: live vue js port number 
Javascript :: promise.all vs promise.allsettled 
Javascript :: react compress image 
Javascript :: react webpack config example 
Javascript :: parsley js decimal 
Javascript :: http request javascript 
Javascript :: dockerfile 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =