Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post

Bootstrap modal event fires multiple times?

When confirm popup closes the event fires multiple time, I added page update action but it calling multiple times.

$("#bsModel").on("", function (e) {


    //isOk is set to true when ok button clicked

        if (isOk) {

           //Data update call when model closed



Bootstrap modal popup button calling multiple times?

I created bootstrap confirm popup, when I click bootstrap ok button on confirm modal then ok button call itself twice or more instead one call, issue is AJAX call for delete is executing multiple times.

My confirm button click jQuery code,

$("#btnOk").on('click', function (e) {
            //ajax call for update/delete
        $('#bsModel').data("modal", null);