codeGK
Code it ALL
jQuery remove() - CodeGK

♦ jQuery remove()

♣ Example1: jQuery remove()

Removes the selected element (and its child elements).
Basic Syntax
$(selector).remove();
selector: the HTML element to be selected.
remove(): syntax for removing all the whole selected HTML element along with it's children.
In this example, jQuery remove() method is illustrated.
Example
Input:
Output:
Remove