Using the following jQuery will get the RGB value of an element’s background color:
$('#selector').css('backgroundColor');
Is there a way to get the hex value rather than the RGB?
Using the following jQuery will get the RGB value of an element’s background color:
$('#selector').css('backgroundColor');
Is there a way to get the hex value rather than the RGB?