Home >Web Front-end >JS Tutorial >Implementation code for deleting elements in Jquery_javascript skills

Implementation code for deleting elements in Jquery_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:57:53898browse

Syntax:
empty()
remove(expr);
empty is used to delete the child elements of the specified element, remove is used to delete the element, or set refinement conditions to perform deletion, such as:
html

Copy code The code is as follows:


Use the empty method to delete this tag


The following tags will be deleted


Ready for use remove method to delete


Preparing to use the remove method to delete


Preparing to use the remove method to delete< ;/p>



javascript
Copy code The code is as follows :


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