Close Modal form

Total Post:24

Points:168
 609  View(s)
Ratings:
Rate this:

Hi

 I have below code but it is not working. After closing msgmodal i want to close 'myModal'. Please Help. 

success: function (result) {
                    if (result.success) {
                        $("#msgModalBody").html("Record Successfully Saved ?");
                        $("#msgModal").modal('show');
                        $("#myModal").modal.close();
 
                    }
                },

Thanks

  1. Post:52

    Points:366
    Re: Close Modal form

    Your syntax for closing modal is not correct. You can use this


    success: function (result) {
                if (result.success) {
                    $("#msgModalBody").html("Record Successfully Saved ?");
                    $("#msgModal").modal('show');
                    $("#myModal").modal('hide');//syntax for closing modal
                }
            },

     

      Modified On Apr-11-2018 10:36:05 PM

Answer