HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
jQuery Traversing Methods : Add <p> and <span> elements to an existing group of elements (<h1>)
The add() method adds elements to an existing group of elements.
This method adds elements on the whole document, or just inside context elements if the context parameter is specified.
Parameter | Description |
---|---|
element | Required. Specifies a selector expression, a jQuery object, one or more elements or an HTML snippet to be added to an existing group of elements |
context | Optional. Specifies the point in the document at which the selector expression should begin matching |