2022.1

Table Of Contents
A String containing an HTML tag (without the angle brackets, <>).
Examples
The following script looks up all table rows in the template that contain an <input> element.
query("input").closest("tr");
This code gets the closest 'parent' row for each element that matches the selector of the script
(collected in the results object):
results.closest("tr");
The rows could be colored red within the same statement:
results.closest("tr").css('background-color','red');
css()
Gets the value of a style property of one HTML element, or sets one or more CSS properties of
one or more HTML elements.
css(styleName) : String
Returns the value of the specified CSS property of an HTML element, which can be:
l The first element in a set of elements that match the selector of a script (see "results" on
page1509).
l One element that matches the selector of a script that runs for "Each matched element"
(see "this" on page1425 and "Setting the scope of a script" on page924).
l The first element in a set of elements returned by a query in the template (see "query()" on
page1379).
propertyName
String; the name of the CSS property.
Examples
This script stores the text color of the results (the HTML elements that match the selector of the
script) in a variable.
var textcolor = results.css("color");
Page 1444