JSFiddle - React, Tailwind, and code Playground

by Rajeesh Menoth

HTML

<div class="xxx" data-name="quantity" data-value="2" data-id="80"></div>

JavaScript

$('div').filter(function(){
 alert($(this).attr('data-name'));
});