JSFiddle - React, Tailwind, and code Playground
HTML
<div id="sponsorship">
<div>
<div class="section">Section 1</div>
<div class="section">Section 2</div>
<div class="section">Section 3</div>
</div>
</div>
<div id="log">
abc
</div>
JavaScript
$(function () {
function addEventHandler(array, type, func) {
var len = array.length;
for (var i = 0; i < len; i++) {
array.eq(i).bind(type, func);
}
}
var section1 = $('#sponsorship > div .section')[0];
$('#log').text(section1.text());
});