I have a colection of checkboxes with generated ids and for a reason, some have an extra attribute. Is possible using JQuery to check if an element has a specific attribut ? For example can I verify if the following element has as attribute "myattr" ? The value of the attribute can vary.
<input type="checkbox" id="A" myattr="val_attr">A</input>
Thank you for all the responses. For example how can I get a collection of all checkboxes that have this attribute without checking one by one ? Is possible ?