Bootstrap $('#myModal').modal('show') is not working

后端 未结 15 2145
深忆病人
深忆病人 2020-12-03 13:50

I\'m not sure why but all the modal functions are not working with me. I checked the version and the load they are fine.

I keep getting this error message:

15条回答
  •  -上瘾入骨i
    2020-12-03 14:27

    use the object to call...

    Try This
    

    or if you using ajax to show that modal after get result, this is work for me...

    $.ajax({ url: "YourUrl",
    type: "POST", data: "x=1&y=2&z=3",
    cache: false, success: function(result){
            // Your Function here
            $("#myModal").modal("show");
        }
    });
    

提交回复
热议问题