Jquery, set value of td in a table?

后端 未结 5 1108
予麋鹿
予麋鹿 2021-02-02 05:52

I create dynamic a table with and tags. One of the td tags gets the id \"detailInfo\". I have an onclick function on some button.

5条回答
  •  梦毁少年i
    2021-02-02 06:20

    use .html() along with selector to get/set HTML:

     $('#detailInfo').html('changed value');
    

提交回复
热议问题