title: How to get a value of an element by name instead of ID
body: <p>How could I get the value of an element via the attribute <code>name</code> instead of the <code>ID</code>. eg if I use by id it would be <code>$('#id').val();</code></p>