jQuery | add() method with Example
The jQuery add() method is used to add element to the existing group of elements. This method can add element to the whole document, or just inside context element if the context parameter is defined.
Here selector helps to find the matching element.
Parameters: It accept two parameters that are specified below:
jQuery code to show the working of add() method: