Detecting the value of an attribute in Jquery

So I want to do something like this:

if($(‘.class’).attr(‘Attribute Name’) == ‘specific value’)

Is that possible?

That should work as is. Are you experience a problem?
If so could you please be more specific as to what is happening.

You’re right, that is the right syntax.