title: How can I fire an <a href> with enter key press?
body: <p>So, I need to fix a bug: Whenever you hit "enter" key; the form doesn't submit. Basically the cause is because the element that trigger form submit is an href... I tried making it a submit but then the css fails so I was wondering if there is a way to make it submit with enter key?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>        &lt;div class="login-form-bg"&gt;
          &lt;form name="login_form" id="login_form" method="post"&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                      &lt;td&gt;{translate id='Game'}Login:{/translate}&lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="ss_users_pseudo" /&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;{translate id='Game'}Password:{/translate}&lt;/td&gt;
                      &lt;td&gt;&lt;input type="password" name="ss_users_password" /&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr height="30px"&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;td&gt;
                      &lt;fb:login-button perms="email" id="facebook-login-button"&gt;&lt;/fb:login-button&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;td class="checkbox"&gt;&lt;label for="request_password"&gt;{translate id='Game'}&lt;a href="forgotPassword.php"&gt;Request password&lt;/a&gt;{/translate}&lt;/label&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;td class="checkbox"&gt;{translate id='Game'}Remember me{/translate} &lt;input type="checkbox" name="ss_users_remenber_me" value="1" /&gt;&lt;/td&gt;
                  &lt;/tr&gt;
  
              &lt;/table&gt;
                  &lt;a href="#" onclick="document.login_form.submit(); return false;" name="connect" id="connect"&gt;
                      &lt;div class="button-action login-button-div"&gt;
                          &lt;span&gt;&lt;span&gt;&lt;span&gt;
                              {translate id='Game'}Login{/translate}
                          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
                      &lt;/div&gt;
                  &lt;/a&gt;
          &lt;/form&gt;
  </code></pre>