You hide Bootstrap modals with:
$('#modal').modal('hide');
Saying $().hide() makes the matched element invisible, but as far as the modal-related code is concerned, it’s still there. See the Methods section in the Modals documentation.
You hide Bootstrap modals with:
$('#modal').modal('hide');
Saying $().hide() makes the matched element invisible, but as far as the modal-related code is concerned, it’s still there. See the Methods section in the Modals documentation.