jquery .html() does not work on ie8

后端 未结 7 600
耶瑟儿~
耶瑟儿~ 2021-02-04 05:48

I have a jquery function which makes an ajax call to a webservice method on the web server, the method returns a html table with data. I am using .html() to render the return va

7条回答
  •  被撕碎了的回忆
    2021-02-04 06:13

    Just a gut feeling, but are you sure that you enter the if-block at all? I am just asking having stumbled in true vs "true" a couple of times myself...

    Try:

    success: function(data) {
        alert('outside of if');
        if (data.d[0] == "true") {
            alert(data.d[1]);
            $("#dvProudctInstruction").html(data.d[1]);
        }
    }
    

    Might not be anything, but at least you would eliminate the possibility that you'd simply never run the code line you've highlighted.

提交回复
热议问题