JSFiddle - React, Tailwind, and code Playground
by davidmold
HTML
<html>
<div class="profile-images">
<div class="profile-row">
<div class="profile-image">
</div>
</div>
<div class="profile-image">
</div>
<div class="profile-image">
</div>
</div>
</html>
CSS
.profile-image{
width:100px;
height:100px;
background-color:red;
margin:5px;
}
JavaScript
$(function(){
$('.profile-images').children().eq(1).css('background-color','blue');
console.log($('.profile-images').children('.profile-image').length);
})