JSFiddle - React, Tailwind, and code Playground

by chauhangs

HTML

<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>

JavaScript

$( document ).ready(function() {
  var n = $("li").length;
    alert(n);
});