{"id":11883,"date":"2022-02-08T11:32:42","date_gmt":"2022-02-08T16:32:42","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=11883"},"modified":"2022-02-08T11:32:44","modified_gmt":"2022-02-08T16:32:44","slug":"bootstrap-show-modal-jquery-trigger-example","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/bootstrap-show-modal-jquery-trigger-example\/","title":{"rendered":"Bootstrap Hide Modal jQuery Trigger Example"},"content":{"rendered":"\n
Hide the modal:<\/p>\n\n\n\n
$('#myModal').modal('hide');<\/code><\/pre>\n\n\n\nToggle the modal. This will hide the modal if it is already shown.<\/p>\n\n\n\n
$('#myModal').modal('toggle');<\/code><\/pre>\n\n\n\nUsing vanilla JavaScript:<\/p>\n\n\n\n
<script>\n var myModal = document.getElementById('modalID');\n myModal.hide();\n<\/script><\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,15],"tags":[954,328,333,471,638],"yoast_head":"\nBootstrap Hide Modal jQuery Trigger Example<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n