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:
Parameters | Description |
String value, indicating the selector expression to find elements to be added to the set of matching elements. |
Syntax 2:.add(elements)
Parameters:
Description | |
One or more elements added to the matching element set. |
Syntax 3:.add(html)
Parameters:
Description | |
HTML fragment added to the set of matched elements. |
Syntax 4:.add(jQueryObject)
Parameters:
Description | |
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!
Description | |
String value, indicating the search for adding to the matching element set The selector expression for the element. | |
The position where the selector starts matching. |