JSFiddle - React, Tailwind, and code Playground
by ritcheyer
HTML
<div class="facet-graphs handles">
<i class="handle">1 handle</i>
<i class="handle alternate">2 handle</i>
</div>
JavaScript
var $handles= $('.handles').find('.handle');
//alert($handles.length);
console.log($handles);
$($handles[0]).click(function(e){
alert('first child clicked');
e.preventDefault();
});
$($handles[1]).click(function(e){
alert('last child clicked');
e.preventDefault();
});
//$(handleRight).dosomething();