You can simply use the modal('show') method to show or open the modal window in Bootstrap using jQuery. Other related Bootstrap's modal methods are modal('hide') and modal('toggle').
Let's try out this example which programmatically open Bootstrap modal on a button click:
Use the
modal('show')
MethodYou can simply use the
modal('show')
method to show or open the modal window in Bootstrap using jQuery. Other related Bootstrap's modal methods aremodal('hide')
andmodal('toggle')
.Let's try out this example which programmatically open Bootstrap modal on a button click:
need an explanation for this answer? contact us directly to get an explanation for this answer