Check if the name field in a form contains a number using javascript and the onchange event
<p>im the definition of a rookie and i hav no idea what im doing. i have to create a function using javascript to perform a validation on the 'name' field in a form. The check will see if there is anything entered or if the name contains a number. On top of this i have to use a onchange event. I tried searching and i got answers put i saw the answers had jquery code in it and i cant use it in this question. Im clueless on what to do, can someone please help? Here is the form im working with</p>

<pre><code>     &lt;form method="get"&gt;
        &lt;label for="name"&gt;Name&lt;/label&gt;
        &lt;input type="text" id="name" placeholder="Name" onChange="" &gt;
        &lt;br&gt;
        &lt;label for="age"&gt;Age&lt;/label&gt;
        &lt;input type="age" id="age" placeholder="Age"&gt;
        &lt;br&gt;
        &lt;label for="location"&gt;Location&lt;/label&gt;
        &lt;input type="location" id="location" placeholder="Location"&gt;
        &lt;br&gt;
        &lt;button type="submit"&gt;Submit&lt;/button&gt;
    &lt;/form&gt;
</code></pre>
