title: Simple form inside dynamic Boostrap modal not submitting
body: <p>I have a table of links each opening a bootstrap modal containing a simple form. </p>
  
  <p>I am using pagination to load more links onto my page. But the simple forms inside the new modals that got loaded (thru pagination) will submit.</p>
  
  <p>Any ideas?</p>
  
  <p>Some clues: </p>
  
  <ul>
  <li><p>If I paginate the simple forms without being placing them inside the modals, the forms submit properly and work.</p></li>
  <li><p>The forms inside the modals on the first page also work. Just not after I load more using pagination.</p></li>
  </ul>
  
  <p>Index.html.erb:</p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;div id="results" class="col-xs-12 col-md-10 col-md-offset-1"&gt;
          &lt;%= render :partial =&gt; 'companies/list', :param_name =&gt; 'companies_page', :locals =&gt; { :companies =&gt; @companies } %&gt; 
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>_list.html.erb:</p>
  
  <pre><code>&lt;table class="table table-striped"&gt;
    &lt;tbody&gt;
      &lt;% @companies.each do |company| %&gt;
        &lt;tr&gt;
          &lt;td style="vertical-align:middle;"&gt;
            &lt;span class="btn btn-primary btn-sm" data-toggle="modal" data-target="#company_app_&lt;%=company.id %&gt;" onclick=""&gt;
              Interested
            &lt;/span&gt;
          &lt;/td&gt;
          &lt;div class="modal" id="company_app_&lt;%=company.id%&gt;" tabindex="-1" role="dialog" aria-labelledby="company_app_&lt;%=company.id%&gt;Label"&gt;
            &lt;div class="modal-dialog" role="document"&gt;
              &lt;div class="modal-content"&gt;
                &lt;%= simple_form_for(@company_candidate, :method =&gt; :post, url: { :controller=&gt;"company_candidate", :action=&gt;"create"}, remote: true) do |f| %&gt;
                  &lt;%= f.submit "Apply", :class =&gt; "btn btn-primary", :onclick =&gt; "" %&gt;
                &lt;% end %&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/tr&gt;
      &lt;% end %&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;center&gt;
    &lt;%= js_will_paginate @companies, :param_name =&gt; 'companies_page', :params =&gt; { :public_id =&gt; session[:public_id] }, renderer: BootstrapPagination::Rails %&gt;
  &lt;/center&gt;
  </code></pre>