title: How to make enter the submit button in a form
body: <p>I have a form for logging into my website. I need to make it so that when the user hits enter, the form submits. How can I do this? Please provide code.</p>
  <pre><code>&lt;form id=&quot;login&quot; action=&quot;myHome.php&quot; method=&quot;POST&quot;&gt;
      &lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot;/&gt;
      &lt;br/&gt;
      &lt;br/&gt;
      &lt;input type=&quot;text&quot; name=&quot;password&quot; id=&quot;password&quot;/&gt;
  &lt;/form&gt;
  </code></pre>