jquery.aria.js

Source:
Version:
  • 0.7.0a
Author:
License:
  • MIT

This is a jQuery plugin that adds methods for manipulating WAI-ARIA attributes. Unlike other plugins that do similar things, this plugin has been designed to match jQuery's style making it much easier to pick up. The plugin includes:

Getting and Setting WAI-ARIA Attributes
jQuery#aria for getting and setting WAI-ARIA attributes.
jQuery#ariaRef for getting and setting references to other elements.
jQuery#ariaState for getting and setting states.

Removing WAI-ARIA Attributes
jQuery#removeAria for removing WAI-ARIA attributes (aliased as jQuery#removeAriaRef and jQuery#removeAriaState).

Adjusting WAI-ARIA Attribute Manipulation
jQuery.ariaFix will convert the names of WAI-ARIA attributes.
jQuery.ariaHooks allow special functionality to be defined for specific WAI-ARIA attributes.

Manipulating Landmarks
jQuery#role, jQuery#addRole and jQuery#removeRole handling WAI-ARIA landmarks.

Helper Functions for Common Functionality
jQuery#identify for generating element IDs as necessary.
jQuery#ariaFocusable for toggling focusability.
jQuery.normaliseAria for simplifying the WAI-ARIA attributes (aliased as jQuery.normalizeAria).

The files can be downloaded on GitHub.