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

console.log($('div.mat')); 
console.log($('div.mat').length); 
console.log($('div.mat')[0]); 
console.log($('div.mat').eq(1).html());