JSFiddle - React, Tailwind, and code Playground

by Matt Ball

HTML

<div class="fields" style="display:none;">
    ...
</div>
<div class="fields" style="display:none;">
    ...
</div>
<div class="fields" style="display:none;">
    ...
</div>
<div class="fields" style="display:none;">
    ...
</div>

JavaScript

$('div.fields:lt(3)').each(function (index, elt)
{
    $('<h1></h1>', {text: 'Station ' + index}).prependTo(this);
}).show();