prevent bootstrap modal window from closing on form submission

后端 未结 7 1825
轻奢々
轻奢々 2021-02-05 06:47

Hi I\'m using Bootstrap for the first time and I can\'t get my modal form to stay open on clicking the submit button. I\'ve searched SO but all related questions deal with slig

7条回答
  •  借酒劲吻你
    2021-02-05 07:14

    use below code only:-

    enter $(document).ready(function () {
    $("#myModal").modal('show');
    

    });

    and write your html code in update panel then remove data-dismiss="modal" from the button. Hope it works for you.

提交回复
热议问题