Why does .html work and not innerHTML or appendChild

后端 未结 4 2074
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 11:30

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 unkno

4条回答
  •  长情又很酷
    2020-12-18 12:07

    Just use jQuery and forget about all the horrible cross browser problems - you won't go back!

提交回复
热议问题