I have a code to apply every li's border-left-color to its background.
But I want to apply background-color when user :hover on li element.
And Is that possible fill background left to right with jquery as in this example? It is easy with CSS but I dont know how to do it with jquery.
Here is another solution about left to right background with box-shadow property.
$(document).ready(function(){
$('.side-category ul li').each(function(){
$(this).css("background", $(this).css("border-left-color"));
})
});