So I want to do something like this:

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

Is that possible?