Jquery, set value of td in a table?

后端 未结 5 1114
予麋鹿
予麋鹿 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条回答
  •  情话喂你
    2021-02-02 06:29

    You can try below code:

    $("Your button id or class").live("click", function(){
    
        $('#detailInfo').html('set your value as you want');
    
    });
    

    Good Luck...

提交回复
热议问题