@heppokofrontend/jquery-accessible-name
v0.1.2
Published
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![Published on NPM](https://img.shields.io/npm/v/@heppokofrontend/jquery-accessible-name.svg)](https://www.npmjs.com/package/@heppokofrontend/jquery-accessible-name) [
Downloads
6
Maintainers
Readme
jQuery.fn.a11yName
Download
Install
If use CDN:
<script src="https://cdn.jsdelivr.net/npm/@heppokofrontend/[email protected]/dist/jquery.accessibleName.min.js"></script>
If use npm:
npm i @heppokofrontend/jquery-accessible-name
Suppot
- The
aria-labelledby
attribute - The
aria-label
attribute - The
label
element - The
title
attribute
Usage
<labal for="name">Your name</label>
<input id="name" />
$(function() {
const a11yName = $('input').a11yName(); // > Your name
});