JSFiddle - React, Tailwind, and code Playground
by rpflorence
HTML
<p id="el">I'm an only child</p>
JavaScript
var next = $('#el').next();
if(!next[0]) console.log('no sibling');
by rpflorence
<p id="el">I'm an only child</p>
var next = $('#el').next();
if(!next[0]) console.log('no sibling');