How do I enable enter key submit?
<p>So two questions here: If I use <code>&lt;input type="button" onclick="validate()"&gt;</code> then the enter key wouldn't work. However, I can use <code>type="submit"</code> but how would I invoke <code>validate()</code>? </p>
