Home > Web Front-end > JS Tutorial > body text

Implementation code for deleting elements in Jquery_javascript skills

WBOY
Release: 2016-05-16 17:57:53
Original
884 people have browsed it

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 :


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