2022.1

Table Of Contents
Function Description
on page913 for example). Returns the result set.
"show()" on
page914
Shows the HTML element or a set of HTML elements.
size() Gets the number of elements in this result set. Equivalent to the
length property.
"tagName()" on
page914
Returns the HTML tag name of the first element in this result set, in
uppercase. For an example see: "Creating a Table Of Contents" on
page443.
"text()" on
page915
Replaces the textcontentof an HTML element or of each element in a
set of HTML elements with the supplied value, or returns the text
content of the first element if no value is supplied.
"width()" on
page915
Gets or sets the outer width of an element, including padding and
borders.
add()
The add() function adds elements to one or more HTML elements, which can be:
l The elements that match the selector of a script (see "results" on page958).
l One element that matches the selector of a script that runs for "Each matched element"
(see "this" on page877 and "Setting the scope of a script" on page395).
l The elements returned by a query in the template (see "query()" on page831).
add(content)
The add() function adds HTML content to one or more HTML elements and returns the union of
this result or result set and other content.
content
A query result. This can be an HTML string or a result set.
Page 841