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
}
)
});
Also in JavaScript:
- javascript generate random array
- for loop inside a for loop javascript
- simple node server
- find key in nested json object
- js append to array
- "rbac" react redux navigation bar
- how to store javascript input prompt
- how to remove property of object in javascript without delete
- concat array javascript
- send file discord.js
- angular cli spec test false
- equal to or more than javascript
- knex referenced column 'id' in foreign key constraint 'ponto_items_pt_id_foreign' are incompatible.
- async await arrow function
- angular random number between 1 and 10
- javascript does object have property
- javascript function call with variable
- javascript pluck from array of objects
- node red reverse proxy for ui to root
- toisodatestring
- js array into object
- replace non alphanumeric javascript
- javascript var and let
- react hook form validate email