Simon911 Simon911 - 6 months ago 51
Ajax Question

Close Bootstrap's modal with AJAX

I use the modal of Twitter's Bootstrap.
You can close the modal, by clicking on a button or something different with the tag

I would like to process my form in the modal with AJAX (by clicking on a submit button) and then close the modal.
So how do close this modal in AJAX?
Or is that not possible?

(sorry for my bad English...)


If you read further down the documentation:


Just get the ID of the modal, and replace myModal with it. Then place it in the AJAX success handler and there you have it.