jQuery - How to check to see if there is an attribute on an element