Tutorialsplane

jQuery remove Method


jQuery remove Method : is used to remove the selected element from the DOM. It removes the selected element completely from the document object model. It will exist no longer if you remove the element.

Note : Empty method removes child elements and keeps the selector element while remove method removes the child elements including the selector itself.

Syntax

Syntax for remove method โ€“

$(selector).remove();

jQuery remove Method Example

Below example shows the remove method try it โ€“

jQuery remove() Method โ€“ Example


Try it ยป

The above example will produce following output-

Jquery Tutorial

jQuery Effects

jQuery Traversing

jQuery HTML

jQuery Css

jQuery Scroll

jQuery Dimensions

jQuery Ajax