♦ 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.remove(): syntax for removing all the whole selected HTML element along with it's children.
Example
Input:
Output: