JSFiddle - React, Tailwind, and code Playground

by joycse06

HTML

<link rel="stylesheet" href="///ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css">
<div accesskey="">Blank</div>

<div accesskey="some">some</div>
<div accesskey="another">another</div>

<div accesskey="">Blank</div>

JavaScript

var elements = $('[accesskey]').filter(function(){
    return $(this).prop('accessKey');
});

console.log( elements );