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
You want this:
if ( $(this).attr('font-style') != 'italic') { alert ("yop") } else { alert ("nope") }