JSFiddle - React, Tailwind, and code Playground

by mowglisanu

HTML

<Something attribute="" id="top">
    <Something attribute="child" id="child"></Something>
</Something>

JavaScript

$('body').append('count '+$("Something[attribute='child']").length);