How to insert text in a td with id, using JavaScript

前端 未结 5 1717
情歌与酒
情歌与酒 2020-12-08 12:42

I know it may be a simple thing, but I can\'t figure out. I am trying to insert some text coming from a JavaScript function onload event into a td.



        
5条回答
  •  感情败类
    2020-12-08 13:25

    Use jQuery

    Look how easy it would be if you did.

    Example:

    $('#td1').html('hello world');
    

提交回复
热议问题