Defite
11/22/2013 - 8:49 AM

hasAttr();

hasAttr();

$.fn.hasAttr = function(name) {  
   return this.attr(name) !== undefined;
};