Home > front end >  The table, the table containing the jquery how to obtain the first layer of the last line of the tab
The table, the table containing the jquery how to obtain the first layer of the last line of the tab

Time:09-18

 & lt; ! DOCTYPE html> 


<meta charset="utf-8"/& gt;
Get the Table the last line of the Demo
<script SRC="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript" & gt; </script>

<body>


No. & lt;/th>
Name & lt;/th>
Details & lt;/th>



1083 & lt;/td>
Foshan & lt;/td>







Zhang SAN & lt;/td>
Li si & lt;/td>
Huang Er & lt;/td>
Yellow & lt;/td>





Var $lastRow=$(" # tbList tr: the last ");
The console. The log ($lastRow);
</script>



Can get is childrenRow, how to get our realRow?

CodePudding user response:

Var $lastRow=$(" # tbList "). The children () the children (' tr: the last)
  • Related