jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery add() Method

jQuery add() Method



The add() method is used to add elements to an existing group of elements. It adds elements to the whole document. If the context parameter is specified it will add inside that item.




Its syntax is:- $(selector).add(element,context)


Further Explanation:-


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

Code Explanation

All Tutorials related to jQuery Traversing

All Sections related to jQuery