Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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
      }
   )
 });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hover #add #class #children #jquery
ADD COMMENT
Topic
Name
5+6 =