title: Custom callback url when clicking main button in twitter bootstrap Modal
body: <p>I have a bootstrap page that lists items in a table. Each item has its own delete link that launches the modal. </p>
  
  <pre><code>&lt;a href="#modalDel" data-idtodelete="&lt;?php echo $value-&gt;id; ?&gt;" class="deletelink"&gt;
  Delete this item
  &lt;/a&gt;
  
  ...
  
  jQuery("a.deletelink").click(function(event){
      var id2del = $(this).data('idtodelete');
      jQuery("#myModalLabel").html("Delete item: "+id2del); //works great
      jQuery('#modalDel').modal('show');
  });
  </code></pre>
  
  <p>I can pass data to the modal easily, but now I have to make the main button in modal to reflect the dynamic url and call to it (only) when this button is clicked</p>
  
  <p>Any ideas? Thanks</p>
  
  <p><em>PS: cannot use the hidden event for this, because modal can also be hidden with the cancel button. Also, modal should be closed after/before calling the dyn. delete url of main button</em></p>