title: JQuery .trigger('submit') breaking
body: <p>Im finding that because all the forms that Im working on have a submit button which inlcudes a 'name="submit"' attribute, that the trigger submit is breaking when I click on the link that is supposed to trigger the form submit.</p>
  
  <p>Does anyone know how I can get round this.</p>
  
  <p>The JQuery code below is what Im using:</p>
  
  <pre><code>$('#login_form :submit').each(
         function()
         {
            var $this = $(this);
            var f = this.form;
            var link = $('&lt;a class="swap_link" href="#"&gt;' + $this.val() + '&lt;/a&gt;')
               link.click(function()
  
                  {
                     $(f).trigger('submit');
                     return false;
                  }
               )
              $this.after(link).css({position:'absolute', top:'-2000px'});
              }
          )
  </code></pre>
  
  <p>Appreciate any help with this. Thanks</p>
  
  <p>Hi. check out the link below: </p>
  
  <p><a href="http://www.mr-scraggy.com/test.html" rel="nofollow noreferrer">http://www.mr-scraggy.com/test.html</a> </p>
  
  <p>on this page you can see the form in action. The top form which does not have a name="submit" in the submit button works. The bottom form which includes the name="submit" does not. (when I say work, the form is not hooked up to any scripts, but you can see that the submit link in the top form does 'something').</p>
  
  <p>see also below the form html:</p>
  
  <pre><code>&lt;form id="swaplink" name="login" action="/action/login.php" method="post" accept-charset="utf-8" class="clearfix"&gt;
  &lt;input type="hidden" name="redirecturl" id="redirecturl" value="{$redirecturl}" /&gt;
  &lt;h2&gt;My Account Login&lt;/h2&gt;
  &lt;ul id="login_form"&gt;
      &lt;li&gt;
          &lt;label for="username"&gt;Username:&lt;/label&gt;
          &lt;input type="text" name="username" id="username" class="input-text" maxlength="32" /&gt;
          &lt;/li&gt;
      &lt;li&gt;
      &lt;label for="password"&gt;Password:&lt;/label&gt;
      &lt;input type="password" name="password" id="password" class="input-text" maxlength="32" /&gt;
          &lt;/li&gt;
      &lt;li&gt;
      &lt;input type="submit" name="submit" value="Login" /&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
      {$failed_message}
  &lt;/form&gt;
  </code></pre>