title: Jquery - Internet Explorer submitting form twice
body: <p>I have the following code which I use to submit forms with links (instead of buttons).  This is so that we can do some CSS hover stuff with them.</p>
  
  <pre><code>$('a.css_submit').click(submit_form);
  $('a.inactive_submit').click(submit_form);
  
  function submit_form(event) {
    if ($(this).parents('form:first').length &gt; 0 &amp;&amp; !$(this).hasClass('inactive_submit'))   {
          $(this).toggleClass("css_submit inactive_submit");
      $(this).parents('form:first').submit();
      return false;
    } else {
      return true;
    }
  }
  </code></pre>
  
  <p>The issue is that Internet Explorer occasionally submits the form twice.  I haven't been able to replicate the problem myself, but I can verify it in my production server logs.  This problem persists in IE6 - IE9.  All other browsers work fine.  I've seen some posts that say to return false from the link, but I'm doing that.</p>
  
  <p>Any help is appreciated.</p>