Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

add navbar active

$(document).ready(function() {
    $('a[href$="' + location.pathname + '"]').addClass('active');
});
Comment

active class nav

$('.nav-list li').click(function() {

    $('.nav-list li.active').removeClass('active');
    $(this).addClass('active');
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript add query string to url 
Javascript :: export json / array to excel in javascript 
Javascript :: dart json serializable 
Javascript :: input show validation message 
Javascript :: how to check two different length array values are equal in javascript 
Javascript :: angular date pipi locale 
Javascript :: javascript sign 
Javascript :: for in loop javascript 
Javascript :: how to check if string contains substring javascript 
Javascript :: Javascript using for loop to loop through an array 
Javascript :: js how to find max value in an array 
Javascript :: how to pass function as a props in react in functional components 
Javascript :: multiple class to same click jquery 
Javascript :: streami node js 
Javascript :: process nexttick 
Javascript :: javascript foreach loop array 
Javascript :: react bootstrap hide toggle menu when scrolling down 
Javascript :: add icon to angular 
Javascript :: angular mat radio group select index 
Javascript :: get element of selection javascript 
Javascript :: Query all object in mongo array to satisy condition 
Javascript :: spray scala JSON formatter override def read examples 
Javascript :: how to remove last character from string in javascript 
Javascript :: defining functions in react 
Javascript :: crdit card input format 
Javascript :: angularjs How to get Capacitor Storage values before doing http call IONIC 6 
Javascript :: react state management 
Javascript :: post request enabled in express js 
Javascript :: sending json data uing fetch is empty 
Javascript :: crud in node 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =