hasAttribute
Givet ett element:
<input id="elem" value="text">
Kontrollera om det har attributet value.
value