Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

on hover add class on children jquery

$(document).ready(function()
  {
    $('li.active').hover(
      function(){ 
        $(this).children("a").addClass("icon-white"); //Add an active class to the anchor
      },
      function() {
        $(this).children("a").removeClass("icon-white"); //Remove an active class to the anchor
      }
   )
 });
Comment

PREVIOUS NEXT
Code Example
Javascript :: compose javascript 
Javascript :: write own nodemon in package.json 
Javascript :: when does localstorage get cleared 
Javascript :: jquery get element max height 
Javascript :: control audio javascript 
Javascript :: react native text input right 
Javascript :: Array.include is not a function javascript error help 
Javascript :: vue get element height 
Javascript :: regExp numero français 
Javascript :: match password and confirm password in javascript if true then submit form 
Javascript :: javascript is number even or odd 
Javascript :: javascript join 
Javascript :: how to delete a cookie in js 
Javascript :: datatable 
Javascript :: localstorage remove item 
Javascript :: how to use react router 
Javascript :: How to swap two array elements in JavaScript 
Javascript :: javascript get intersection of two arrays 
Javascript :: javascript date methods 
Javascript :: mongoose delete property 
Javascript :: node js variables in string 
Javascript :: javascript random integer 
Javascript :: reverse 179 in javascript 
Javascript :: javascript capitalize first letter of each word 
Javascript :: placeholder javascript 
Javascript :: videojs cdn 
Javascript :: javascript remove certain element from array 
Javascript :: get url in js 
Javascript :: use static pages nodejs 
Javascript :: innerhtml replace javascript 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =