hasAtrr()
Returns
Usage
$('.button').hasAttr('id'); // Checks if the element has an 'id' attribute
$('.link').hasAttr('href', 'target'); // Checks for multiple attributes$('img*').hasAttr('src'); // Checks if all <img> elements have a 'src' attribute
$('input').hasAttr('type', 'name'); // Checks if all <input> elements have both attributesLast updated