jquery .html() does not work on ie8

后端 未结 7 607
耶瑟儿~
耶瑟儿~ 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 05:59

    Whether its .html() that is not working or its something else, check it first. Put an alert and see if you get correct, expected html or not.

    alert(data.d[1]);
    $("#dvProudctInstruction").html(data.d[1]);
    

    Most likely the html coming in data.d[1] contains error and IE is not able to resolve it.

提交回复
热议问题