JSFiddle - React, Tailwind, and code Playground HTML <div title="A"></div> JavaScript var a = $('[title=A]'); alert(a.selector);