aria-selected attribute | ariaSelected property (Internet Explorer)

Switch View :
ScriptFree
aria-selected attribute | ariaSelected property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the selection state of this element.

Internet Explorer 8

Syntax

HTML
<element aria-selected="p" ... >
JavaScript
object.setAttribute("aria-selected",value);var value = object.getAttribute("aria-selected");

Property values

Type: String

The selection state.

(true)

The element is selected.

(false)

The element is not selected.

(undefined)

Default. The element state is unknown.

Remarks

Selecting an element indicates that it is chosen for an action, and most likely has focus.

Note  For cross-browser compatibility, always use the WAI-ARIA attribute syntax to access and modify ARIA properties, for example object.setAttribute("aria-valuenow", newValue).

See also

Accessible Rich Internet Applications (ARIA)
W3C ARIA-Selected

 

 

Build date: 2/13/2012