JSFiddle - React, Tailwind, and code Playground
by bilbobaggins
HTML
<div class="mat">
content one
content two
content three
</div>
<div class="mat">
ontent one
ontent two
ontent three
</div>
JavaScript
$('div.mat').each(function () {
console.log(this);
});
$('div.mat').each(function (i) {
console.log("Item " + i + " is ", this);
});