How to select all elements with particular ARIA value using jQuery?

前端 未结 2 776
面向向阳花
面向向阳花 2021-01-07 19:35

Given i have a sample page that looks like this:





heading

2条回答
  •  被撕碎了的回忆
    2021-01-07 19:47

    The attribute selector

    [aria-controls="name1"]
    

    should work.

    Docs: http://api.jquery.com/attribute-equals-selector/

提交回复
热议问题