How to Use the remove () method of jQuery _ jquery

Source: Internet
Author: User
Removes all matched elements from the DOM. This method does not delete matching elements from the jQuery object, so you can use these matching elements in the future. However, in addition to retaining this element, other events such as bound events and additional data will be removed. In my understanding, the elements are removed. Definition and usage of the remove () method:

This method deletes all matching elements from the DOM.

Note: The remove () method does not delete matching elements from the jQuery object. Therefore, these matching elements can be used in the future. However, in addition to retaining these elements, other events, such as bound events and additional data, will be removed.

Syntax structure:

$(selector).remove(expr)

Parameter List:

Parameter description
Expr is optional. JQuery expression used to filter elements

Instance code:

 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.