Please enable JavaScript to view this site.

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

Tabs API: headerElement

Scroll Prev Next More

 

Returns the jQuery object of the tab header.

Syntax

headerElement( n )

Arguments

n

a zero-based index of the tab.

Return value

Returns the jQuery object of the tab header.

Example

Change the title of a tab to "Active tab" in bold.

 

var tabs = pageObj.getTabs();
tabs.headerElement(1).html('<b>Active tab</b>');

See also:

RunnerPage object: getTabs

Sections API: headerElement

Editing the <head> section

About Tabs/Sections API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software