title: Send parameter to Bootstrap modal window?
body: <p>I have a problem, I cannot pass any parameters to a modal window (using Bootstrap 3), I tried using the solution stated in this link, but I cannot make it work:</p>
  
  <p><a href="https://stackoverflow.com/questions/11003679/dynamically-load-information-to-twitter-bootstrap-modal">Dynamically load information to Twitter Bootstrap modal</a></p>
  
  <p>(Solution kexxcream user).</p>
  
  <p>But pressing the button, the display does not show me anything, apparently blocks, attached a picture below:</p>
  
  <p><a href="https://i.imgur.com/uzRUyf1.png" rel="noreferrer">http://i.imgur.com/uzRUyf1.png</a></p>
  
  <p>I have attached the code (same code post above left);</p>
  
  <p>HTML Code:</p>
  
  <pre><code>      &lt;div id="myModal" class="modal hide fade"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
          &lt;h3&gt;Title&lt;/h3&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;            
            &lt;div id="modalContent" style="display:none;"&gt;
  
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;a href="#" class="btn btn-info" data-dismiss="modal" &gt;Close&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt; 
  </code></pre>
  
  <p>JS Code:</p>
  
  <pre><code>    $("a[data-toggle=modal]").click(function() 
      {   
          var essay_id = $(this).attr('id');
  
          $.ajax({
              cache: false,
              type: 'POST',
              url: 'backend.php',
              data: 'EID='+essay_id,
              success: function(data) 
              {
                  $('#myModal').show();
                  $('#modalContent').show().html(data);
              }
          });
      });
  </code></pre>
  
  <p>Button:</p>
  
  <pre><code>&lt;a href='#myModal' data-toggle='modal' id='2'&gt; Edit &lt;/a&gt;
  </code></pre>
  
  <p>PHP Code (backend.php):</p>
  
  <pre><code>&lt;?php
  $editId = $_POST['EID'];
  ?&gt;
    &lt;div class="jumbotron"&gt;
     &lt;div class="container"&gt;
      &lt;h1&gt;The ID Selected is &lt;?php echo $editId ?&gt;&lt;/h1&gt;
     &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>