问题标签 [input-button-image]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
110 浏览

jquery - 如何在 jQuery Datepicker 中实现 aria-expanded 值?

我正在寻找在 .ui-datepicker-trigger 下扩展的 aria 的实现,所以当点击焦点或选项卡按钮时,如果日历被展开,叙述者应该讲述日历展开,当焦点关闭时,它应该说日历折叠。下面是代码。

img-1 叙述日历是否折叠 img-2 按下回车后它应该叙述日历展开

一个 html+ javascript 演示在这里