Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide twitter bootstrap button

Tags:

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?

And on another condition turn it back on again.

<a href="#" id="edit-modal-button" class="btn btn-warning" data-dismiss="modal"> Edit </a>

Update:

The button to hide is inside the modal

Ive tried the following to no avail

$("edit-modal-button").css('display','none'); 

$('edit-modal-button').hide();