setting content between div tags using javascript

后端 未结 3 1014
孤独总比滥情好
孤独总比滥情好 2020-12-15 03:37

I\'m trying to set some content in between some div tags on a JSP page using javascript.

currently the div tag on the JSP page looks like this:



        
3条回答
  •  一向
    一向 (楼主)
    2020-12-15 03:56

    See Creating and modifying HTML at what used to be called the Web Standards Curriculum.

    Use the createElement, createTextNode and appendChild methods.

提交回复
热议问题