开发者

Replace contents of a script block using jQuery

I've a script block in HTML which basically has some JSON content. I would like to replace contents inside it using jQuery. I did something like this:

$("#data").html(newj开发者_JAVA技巧son);

Above statement only works with Firefox. It does not work with IE? How do I make this work in IE.


Have a try removing the script element and adding a new one with your new json.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜