title: JQuery submit for rails form not working
body: <p><strong>The info:</strong></p>
  
  <p>I have two models: <code>link</code> and <code>campaign</code> in show.html.erb for <code>link</code> I have the following two forms:</p>
  
  <pre><code>&lt;%= form_for @link, method: :delete, remote: true, id: "delete" do |f| %&gt;
      &lt;%= f.submit :"Submit", id: "linksubmit" %&gt;
  &lt;% end %&gt;
  
  &lt;%= form_for :campaign, url: campaigns_path do |x| %&gt;
      &lt;%= x.hidden_field :title, value: @link.title %&gt;
      &lt;%= x.hidden_field :name, value: @link.name %&gt;
      &lt;%= x.hidden_field :link, value: @link.link %&gt;
      &lt;%= x.hidden_field :description, value: @link.description %&gt;
      &lt;%= x.hidden_field :owner, value: current_user.try(:email) %&gt;
      &lt;%= x.hidden_field :date, value: Date.today.to_s %&gt;
      &lt;%= x.submit :Start, id: "campaignsubmit" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>When I click the submit buttons on their own, they do their job, which is either destroy the <code>link</code> or make a new <code>campaign</code> I need both to submit at the same time. I tried to do that with some JQuery. This is what I have.</p>
  
  <pre><code>$('document').ready(function() {
  
      $('button#campaignsubmit').click(function() {
          $('form#delete').submit();
      });
  
  });
  </code></pre>
  
  <p>Doesn't work. I ran some tests, and I know the JQuery is functioning fine, just not with this function. Any help?</p>