views:

35

answers:

1

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(newjson);

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

+1  A: 

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

Darko Z