add

英[æd] 美[æd]

vt.Add; add; add explanation; include…

vi. Increase; do addition; accumulate; expand

n. Addition, addition operation; (the supplementary part of a report)

jquery add() method syntax

Function:add() method adds elements to the collection of matching elements.

Syntax 1:.add(selector)

Parameters:

##selector String value, indicating the selector expression to find elements to be added to the set of matching elements.
Parameters Description

Syntax 2:.add(elements)

Parameters:

Parameters Description elements One or more elements added to the matching element set.

Syntax 3:.add(html)

Parameters:

Parameters Description html HTML fragment added to the set of matched elements.

Syntax 4:.add(jQueryObject)

Parameters:

Parameters Description jQueryObject An existing jQuery object added to the matching element collection.

Syntax 5:.add(selector, context)

Parameters:

jquery add() method example

$("div").css("border", "2px solid red")
.add("p")
.css("background", "yellow");

About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!
Parameter Description selector String value, indicating the search for adding to the matching element set The selector expression for the element. context The position where the selector starts matching.