title: Send variable from JQuery to Bootstrap Modal
body: <p>I try to send a variable via jquery to an bootstrap modal. First my jquery script.</p>
  
  <pre><code> &lt;script&gt;
          $(document).ready(function(){
              $('.test_uebergabe').click(function(){
                  var idgroups = $(this).attr("id");
                  console.log(idgroups);
                  document.getElementById('modal-header').innerHTML=idgroups;
                  $('#dataModal').modal("show");
              });
          });
   &lt;/script&gt;
  </code></pre>
  
  <p>Here is my html part, where I need to variable in the body text.</p>
  
  <pre><code>    &lt;div id="dataModal" class="modal fade"&gt;
          &lt;div class="modal-dialog"&gt;
              &lt;div class="modal-content"&gt;
                  &lt;div class="modal-header"&gt;
                      Überschrift
                  &lt;/div&gt;
                  &lt;div class="modal-body"&gt;
                      Body...!
                  &lt;/div&gt;
                  &lt;div class="modal-footer"&gt;
                      Footer...!
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>What I must change to get the variable idgroups in the modal body?</p>
  
  <p>Thank you</p>