I have a FlatIcon icon and i modified it via css like this:
[class^="flaticon-"]:before, [class*=" flaticon-"]:before,
[class^="flaticon-"]:after, [class*=" flaticon-"]:after {
font-size: 55px;
color: red;
}
The problem is that i have to modify the color via jquery as well.
I tried several ways, like this:
$('.flaticon-car:before').css('color',"#4286f4");
$('.flaticon-car:after').css('color',"#4286f4");
$('.flaticon-car').css('color',"#4286f4");
$('.flaticon-car:before').css({"color":"#4286f4"});
$('.flaticon-car:after').css({"color":"#4286f4"});
$('.flaticon-car').css({"color":"#4286f4"});
After that, i tried this:
$('.flaticon-car').click(function () {
$(this).css('color','#4286f4');
});
Nothing worked for me.Do you have any ideea how can i do this?