jQuery check if element have specific attribute

后端 未结 6 769
忘了有多久
忘了有多久 2021-01-06 03:07

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         


        
6条回答
提交回复
热议问题