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
WBOYOriginal
2016-05-16 16:52:491750browse
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
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