JSFiddle - React, Tailwind, and code Playground

HTML

<div id="1">foo</div>
<div id="1">foo</div>

Count id (should return 2?) => <span id="count"></span>

JavaScript

jQuery(function(){
    alert(jQuery('#1').length);
    
    jQuery('#count').append(jQuery('#1').length);
});