jQuery remove() Method
jQuery remove() Method
The remove() method is used to remove the selected elements, including all text and child nodes. It is also used to remove data and events of the selected elements.
Syntax:-
Its syntax is:- $(selector).remove(selector)
Further Explanation:-
Parameter | Description |
---|---|
selector | Optional. Specifies one or more elements to be removed. |