I need to know when I click on an element if this element has a CSS attribute. I am thinking of something like this, but it does not work:
if ($('#element').attr("text-shadow")) {
alert ('i Have')
}
else {
alert ('i dont')
}
Any tips on this one? Thanx