title: Hide twitter bootstrap button
body: <p>Is there a way to make a twitter bootstrap modal button not appear on certain conditions, so that it dont show up when opening the modal?</p>
  
  <p>And on another condition turn it back on again.</p>
  
  <pre><code>&lt;a href="#" id="edit-modal-button" class="btn btn-warning" data-dismiss="modal"&gt; Edit &lt;/a&gt;
  </code></pre>
  
  <p><strong>Update</strong>:</p>
  
  <p>The button to hide is inside the modal</p>
  
  <p>Ive tried the following to no avail </p>
  
  <pre><code>$("edit-modal-button").css('display','none'); 
  
  $('edit-modal-button').hide(); 
  </code></pre>