Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Tabs/Sections Javascript API > Tabs methods

Tabs API: bodyElement

Scroll Prev Next More

 

Returns the jQuery object of the tab content.

Syntax

bodyElement( n )

Arguments

n

a zero-based index of the tab.

Return value

Returns the jQuery object of the tab content.

Example

Change the content of the tab to read "This is the content of the tab".

 

var tabs = pageObj.getTabs();
tabs.bodyElement(0).html( '<h1>This is the content of the tab</h1>' );

See also:

RunnerPage object: getTabs

Sections API: bodyElement

Grid Row JavaScript API: row.setFieldText()

About Tabs/Sections API