insert/remove HTML content between div tags

后端 未结 7 2040
渐次进展
渐次进展 2020-12-30 01:22

how can I insert some HTML code between

...
using javascript?

Ex:

7条回答
  •  悲哀的现实
    2020-12-30 01:52

     document.getElementById("mydiv").innerHTML = "Something";
    

    Should do it. If you are willing to use jQuery it could be easier.

提交回复
热议问题