I am trying to add an ajax response to a div (it's HTML code with tables, forms, etc).
In FF innerHTML
works perfectly, but in IE it gives me an unknown error.
I tried lots of stuff, but I only got it working when I added jQuery and ran the .html
method on the div I want the code inserted into.
Anyone care to explain why this works and not a simple innerHTML
? I tried looking at the .html()
code, but I guess I am not the great at JS because I didn't understand what it was doing.