Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Javascript to remove the pressed class after a 100 milliseconds

$('.box').on('click', function(){

    var self = $(this);

    self.addClass("bg1");

    setTimeout(function(){
        self.removeClass("bg1");
    }, 500);

});
Comment

PREVIOUS NEXT
Code Example
Javascript :: js substring 
Javascript :: public class NameOf { public static String nameof<T(Expression<Func<T name) { MemberExpression expressionBody = (MemberExpression)name.Body; return expressionBody.Member.Name; } } 
Javascript :: node.js return json 
Javascript :: get value of span jquery 
Javascript :: angular An accessor cannot be declared in an ambient context. 
Javascript :: matrix elements sum javascript 
Javascript :: gatsby-plugin-create-client-paths 
Javascript :: javascript restrict number to range 
:: mongoose connection 
Javascript ::  
Javascript :: id of other schema type mongoose 
Javascript :: javascript get first letter of each word 
Javascript :: random hexadecimal character js 
Javascript :: chart js y axis integer 
Javascript :: H. Nazmul 
Javascript :: get last item in map javascript 
Javascript :: .style.display 
Javascript :: location.reload sweetalert 
Javascript :: How to show confirm message before delete using jquery 
Javascript :: javascript call function on click give element id 
Javascript :: query selector by href 
Javascript :: moment get month name 
Javascript :: javascript check date greater than today 
Javascript :: fetch json file 
Javascript :: js redirect page 
Javascript :: get a element using name in jquery 
Javascript :: js check if string is integer 
Javascript :: how to create click function in javascript 
Javascript :: inner content 
Javascript :: pick random from array 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =