2022.2

Table Of Contents
String,spaceseparatedlistofclassnames.
Examples
Thisscriptaddsaclassnametoaparagraph.
results.addClass("foo");
Selector Matched element Matched element after script execution
p <p>Helloworld</p> <pclass="foobar">Helloworld</p>
Thefollowingscriptaddstwoclassnamestoaparagraph.
results.addClass("foo bar");
Selector Matched element Matched element after script execution
p <p>Helloworld</p> <pclass="foobar">Helloworld</p>
after()
InsertscontentafteroneormoreHTMLelements,whichcanbe:
l
Theelementsthatmatchtheselectorofascript(see"results"onpage844).
l
Oneelementthatmatchestheselectorofascriptthatrunsfor"Eachmatchedelement"(see
"this"onpage781and"Settingthescopeofascript"onpage373).
l
Theelementsreturnedbyaqueryinthetemplate(see"query()"onpage742).
Seealso:"before()"onpage792.
after(content)
InsertscontentafteroneormoreHTMLelementsandcreatesanewresultset.
content
Page 785