JSFiddle - React, Tailwind, and code Playground

by ethagnawl

HTML

<div data-foo='whatever'></div>

JavaScript

alert($('div[data-foo]').length)