Given a section of HTML, can I selectively pick some types of elements (e.g., input) and add a custom attribute using JavaScript? I would also need to remove this attribute if i
el.attribute = value
is all there is to it. The attribute is created if it does not exist.