problem with jquery tablesorter with dynamic added rows

后端 未结 4 721
Happy的楠姐
Happy的楠姐 2021-01-11 10:11

hello i am having a problem with dynamically added rows to jquery tablesorter,

i have to add a row in the beginning of the table, by default the tablesorter works fi

4条回答
  •  误落风尘
    2021-01-11 10:43

    These lines worked perfectly for me. After assigning HTML just trigger the update function of table.

    $('#tblID').html(str);
    $("#tblID").trigger("update");
    

    where #tblID is the table ID and str is the html of table rows assigned to table.

提交回复
热议问题