Skip to content

Open/Close Bootstrap Modal using jQuery

Bootstrap Modals don’t have their own open and close function per se, but you can use it’s toggle() function to achieve the same functionality:

$('#modal').modal('toggle');

(source)

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.