UNPKG

apex4x

Version:

The Comprehensive ARIA Development Suite

21 lines 1.55 kB
�� Function: describedBy(domElementOrCSSSelector, target-domElementOrCSSSelector) Description: Specifies that the accessible description for an element is to be set using one or more other elements. Returns: Original Object, or $A object if chained. Note: The describedBy() function will automatically set the accessible description for an element, even if the target elements do not include an id. It will automatically manage the aria-describedby attribute accordingly. Example: $A.describedBy(domElement, domElementDescription); $A.describedBy(".form-field.email", ".email-constraint-details"); // Or the same using chaining $A(domElement).describedBy(domElementDescription); $A(".form-field.email").describedBy(".email-constraint-details");