anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

Validate CSS with Javascript

Can anyone attest to whether this is possible? I would think so.

if (Appery("myID").css('background') === '#BBBBBB'){
alert("true");
}
else {
alert ("false");
}

How would I accomplish this assuming the color was indeed true

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Validate CSS with Javascript

Hello,

Your code return RGB not HEX color.
This should help:
http://stackoverflow.com/questions/59...

Return to “Issues”