Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

addAndRemoveClassJquery

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

PREVIOUS NEXT
Code Example
Javascript :: js get children last 
Javascript :: sort object with certain value at start of array js 
Javascript :: make file from array save js 
Javascript :: gojs update text 
Javascript :: javascript get cookie value one liner 
Javascript :: floor javascript 
Javascript :: The .querySelector() Method 
Javascript :: react hook usestate 
Javascript :: installing babel from command line 
Javascript :: mongoose populate example 
Javascript :: Different views for Desktop and mobile Angular 
Javascript :: vbscript popup message box with timer 
Javascript :: show selected image input file from database 
Javascript :: how to add all files in a director to an array in javascript 
Javascript :: nextjs link image 
Javascript :: multiselect 
Javascript :: electron iframe require is not defined 
Javascript :: rivets js bind 
Javascript :: angular 8 remove cookies 
Javascript :: jq click with trigger load data 
Javascript :: javascript get all elements of an id 
Javascript :: get coords of html element js 
Javascript :: cloudflare worker read url params 
Javascript :: get text selection javascript 
Javascript :: javascript display, show properties of object 
Javascript :: pdf.js get current page number 
Javascript :: console log javascript 
Javascript :: image uploading using formdata 
Javascript :: jquery rename id 
Javascript :: what is react mounting 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =