2022.2

Table Of Contents
Property
Field Type Description
length Number Number of elements in this result set. Equivalent to calling size().
Functions
Thefunctionsbelowcanbecalledbytheresultsobjectandbyanyotherresultsetthatisreturnedby
aquery,see"query()"onpage742.
Function Description
"add()"onpage784 AddselementstoasetofHTMLelements.
"addClass()"on
page785
AddsthespecifiedclasstoeachelementinasetofHTMLelements.Hasnoeffectiftheclassisalreadypresent.
"after()"onpage786 InsertscontentaftereachelementinasetofHTMLelements..
"append()"on
page788
InsertscontentattheendofeachelementinasetofHTMLelements.
"attr()"onpage791 ChangethegivenattributeoftheelementorsetofHTMLelementswiththegivenvalue.
"before()"on
page792
InsertscontentbeforeanelementorbeforeeachelementinasetofHTMLelements.
"children()"on
page794
ReturnstheimmediatechildrenofanHTMLelement.
"clone()"onpage833 ReturnsanewresultsetcontainingacopyofeachelementinasetofHTMLelements.
"closest()"on
page795
Foreachelementinaset,thisfunctiongetsthefirstparentelementthatmatchesaselector,bytestingtheelementitself
andtraversingupthroughitsancestorsintheDOMtree.
"css()"onpage796 GetsthevalueofastylepropertyforthefirstelementinsetofHTMLelementsorsetsoneormoreCSSpropertiesforeveryele-
mentinasetofHTMLelements.
"empty()"on
page798
Removesthecontents(childelementsandinnerHTML)fromoneelementorasetofelementsinthetemplate.
"filter()"onpage764 Returnsasubsetofthecurrentresultset.
"find()"onpage799 PerformsasearchforatextinthechildrenofeachelementinasetofHTMLelements,andreturnsanewresultsetwithele-
mentsthatsurroundtheoccurrences.
Page 844