hasAttribute
Given an element:
<input id="elem" value="text">
Check if it has the value attribute.
value