JSFiddle - React, Tailwind, and code Playground

by Sachin Patel

HTML

<div style="column-count: 3;">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>


<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>

<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
</div>

<span id="sa"></span>

JavaScript

$("div ul").each(function(t){ alert( $(this).find("li:first").text() ); } );
//alert($("div ul > li:first").text());