how to show bootstrap modal code example
Example 1: javascript modal close
$('#closemodal').click(function() {
$('#modalwindow').modal('hide');
});
Example 2: open bootstrap modal with javascript
$("#myModal").modal()
Example 3: how to show bootstrap modal
<script>
var myModal = new bootstrap.Modal(document.getElementById('ModalID'))
myModal.show()
</script>
Example 4: show a modal
<a onclick=\"$('#login').modal('hide');$('#lost').modal('show');\" href='#'>Click</a>