Duplicate ajax requests when clicking a button – Jquery ajax
I have the following function to open the popup. When the confirm button is clicked, it will process the request function OpenConfirmPopup(title, msg, func) { var mymodal = $('#confirmModal'); mymodal.find('.modal-title').text(title); mymodal.find('.modal-body').text(msg); mymodal.modal('show'); $('.btn-confirm').click(function () { var args = new Array();…