Open a popup box after receiving result from ajax

前端 未结 3 1173
孤城傲影
孤城傲影 2021-01-19 19:15

i have a ajax code that works properly and gives the desired result. I want to modify this code and want that when a reply is received from ajax a popup/modal box should get

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-19 20:07

    Try put this inside success callback :

    success: function (returndata) {
        if (returndata[4] === 1) {
            $('#bsModal3').modal(); // this
        } else {
            // other code
        }
    },
    

提交回复
热议问题