2021.1

Table Of Contents
Function Description
"show()" on
page1381
Shows the HTML element in the template.
"tagName()" on
page1382
Returns the HTML tag name of the element, in uppercase. For an
example see: "Creating a Table Of Contents" on page921.
"text()" on
page1382
Replaces the textcontentof the HTML element with the supplied value,
or returns the text content of the element if no value is supplied.
"width()" on
page1383
Gets or sets the outer width of the HTML 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 page1427).
l One element that matches the selector of a script that runs for "Each matched element"
(see "this" on page1345 and "Setting the scope of a script" on page874).
l The elements returned by a query in the template (see "query()" on page1299).
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.
Examples
Add one result set to another
This script adds one query result to another and sets the background color to yellow.
query("#test1").add(query("#test2")).css("background", "yellow");
Page 1349