title: Form submitted via jquery Mozilla
body: <p>I have the following simple form where instead of a submit type I use a href link. It works fine everywhere except for Firefox. If I click the LOGIN link nothing happens in Firefox. Any ideas please? I tried to replace a href=# with javascript:void but it did not help.</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
     $("#login_submit").click(function() {
      event.preventDefault();
      $("#login_form").submit();
      return false;
    });
  });
  &lt;/script&gt;
  
  &lt;?
  if(isset($_POST['login']))
  {
   echo "THE FORM WAS SENT";     
  }
  ?&gt;
  
  
  &lt;form id="login_form" action="&lt;? echo $_SERVER['PHP_SELF']; ?&gt;" method="POST"&gt;
      &lt;input type="text" name="jmeno" /&gt;
      &lt;input type="hidden" name="login" value=true /&gt;
      &lt;a href="#" id="login_submit"&gt;LOGIN&lt;/a&gt;
  
  &lt;/form&gt;
  </code></pre>