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.
精彩评论