$('#btnDelete').click(function () { if (selectedEvent != null && confirm('Are you sure?')) { debugger; $.ajax({ type: "POST", url: '/TimeTable/DeleteEvent', data: { 'eventID': selectedEvent.eventID }, success: function (data) { if (data.status) { debugger; //Refresh the calender FetchEventAndRenderCalendar(); $('#myModal').modal('hide'); } }, error: function () { alert('Failed'); } }) } })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)