Jquery Check If Element Has Attribute