getAttribute
Given an element:
<input id="elem" value="text">
Get the value of its value attribute.
value
<input id="elem" class="www zzz">
Get the value of its class attribute.
class