I am trying to see if an element have a specific CSS attribute. I am thinking at something like this:
if ( !$(this).attr(\'font-style\', \'italic\')) { alert
How about this
if ($(this).css('font-style', 'italic')) { alert ("yes") } else { alert ("nop") }
But I'd rather use console.log instead of alert if I were you, use firebug its less annoying and more fun :D
I don't see why this shouldn't work..