First, I need to get the number of rows in the Table. I add the table through the background, so when I get it in the front desk, I get the total number of assignments by length
For example, in the picture above:
If I want to print this table but don’t want to operate it What to do with the contents of that column?
for(var i=0;i{
$("table tr").eq(i).find("td").eq(0).remove();
}
Explanation:
Num is the list sum obtained from the background. 1 is also removed for the header.
The first eq(i) is to get the TR index in the Table
The second eq(0) is to get the first TD position in the TR
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn