insert after an element jquery

后端 未结 2 1392
长发绾君心
长发绾君心 2020-12-21 22:44

From jquery how to insert o

   some other data

after the tr id=user

相关标签:
2条回答
  • 2020-12-21 22:55

    Like this...Use the jQuery after() method

    $("#user").after("<tr><td>some other data</td></tr>");
    
    0 讨论(0)
  • 2020-12-21 23:09
    $('table').append('<tr><td>some other data</td></tr>')
    

    .append will place the html at right before the end tag of the selector.

    0 讨论(0)
提交回复
热议问题