Let's say I have an input field like this:
<input type="text" id="input" value="This is my value">
How can I get the attribute value? In jQuery, I can easily get it with:
$('#input').val() //-> This is my value
How do I do so using pure JavaScript?