title: How set a value in modal action url
body: <p>when click in delete button the modal delete button link have a value from delete button.
  my code</p>
  
  <pre><code>&lt;script&gt;
  $(document).on("click", "#myModal", function (e) {
  
      e.preventDefault();
  
      var _self = $(this);
  
      var myBookId = _self.data('adid');
      $("adid").val(myBookId);
  
      $(_self.attr('href')).modal('show');
  });
  
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>delete button code</p>
  
  <pre><code>print'&lt;td&gt;&lt;button class="btn btn-danger" data-toggle="modal" id="myModal" data-target="#myModal" data-adid='.$cd[$i][0].'&gt;Delete Item&lt;/a&gt;&lt;/button&gt;
  </code></pre>
  
  <p>modal code</p>
  
  <pre><code>&lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
    &lt;div class="modal-dialog"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
          &lt;h4 class="modal-title" id="myModalLabel"&gt;Heads Up!
                       &lt;p&gt;What you are doing will delete a data!&lt;/p&gt;&lt;/h4&gt;
        &lt;/div&gt;
  
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
          &lt;button type="button" class="btn btn-success"&gt;&lt;a href="a=yes&amp;adid=" &gt;Delete&lt;/a&gt;&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>when click in delete item  button then show a modal and this modal delete link have a url like <code>?a=yes&amp;adid=</code></p>
  
  <p>after <code>&amp;adid</code> have a value that come fro delete item data-adid.</p>
  
  <p>but my code not work</p>