Search.../

selectRow( )

Selects a table row by index.

Description

The selectRow() function selects a row. A site visitor can see the row is selected in their view of the site.

Table Row Numbering

Syntax

function selectRow(index: number): void

selectRow Parameters

NAME
TYPE
DESCRIPTION
index
number

The number of the row to select.

The rows in a table are zero-based and don't include the table header. The index of the first row is 0.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

Select the table's first row

Copy Code
1$w("#myTable").selectRow(0);