Home > Web Front-end > JS Tutorial > jquery deletes the content of the tr element with the ID sNews_javascript skills

jquery deletes the content of the tr element with the ID sNews_javascript skills

WBOY
Release: 2016-05-16 16:52:49
Original
1738 people have browsed it
Copy code The code is as follows:

//Delete the tr element whose ID is sNews and whose index is JQID Content
$("#sNews table tr").eq(JQID).remove();
//This article takes table as an example, #sNews is the ID of the div (container); JQID is the index of tr , index starts from 0
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template