I’ve encount a problem with my jQuery code.
I have some properties in a class in my css, like this :
aside#rubrique nav li.li-bleu p.p-niv1{
border-right : 2px solid black;
}
I can change the border-color like this :
$('aside#rubrique nav li.li-bleu p.p-niv1').css("border-right", "2px solid red");
But I need to get the color value of the border, I do that, but the javascript alert displays nothing :
alert($('aside#rubrique nav li.li-bleu p.p-niv1').css("border-right"));
Is not possible to do this ?
Try this out.