JSFiddle - React, Tailwind, and code Playground
by lucasprus
HTML
<button>Alert the number of li elements</button>
<ul>
<li>Coffee</li>
<li>Milk</li>
<li>Soda</li>
</ul
<h2>Soda</h2>
JavaScript
$(document).ready(function() {
$("button").click(function() {
alert($("li").size());
});
});