Home > Back-end >  The <table> delete the tr
The <table> delete the tr

Time:10-11

I have a table format is



,,,,,,,,



Front with layui, I now have a click event, want to delete this table all the cell contents, how to write the

I use the
For (var I=0; i <$(. Layui - table rt). Length; I++) {
$(" tr [data - index='" + $(. Layui - table rt) + "[I]']"). The remove ();
}

This had no effect,


CodePudding user response:


At the beginning of rt, wrong,

CodePudding user response:

A slip of the pen, tr, below the circulation also useless,,,
  • Related