Return the value of the headers attribute of a <th> element with id "myTh":
The result of x will be:
The headers property sets or returns the value of the headers attribute.
The headers attribute specifies a list of header cells containing header information for the current data cell.
The headers property is supported in all major browsers.
Return the headers property:
Set the headers property:
Value | Description |
---|---|
header_ids | Specifies a space-separated list of id's to one or more header cells the table cell is related to |
Return Value: | A String, containing a space-separated list of header cell identifiers |
---|
Display cell headers of second row:
Change the value of the headers attribute of a <th> element with id "myTh":
HTML reference: HTML <th> headers attribute