JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<body>
<div id="stoprId_1"></div>
<div id="stoprId_2"></div>
<div id="stoprId_3"></div>
</body>
</html>
JavaScript
$(document).ready(function(){
alert($('[id^="stoprId_"').length +"-"+$('[id^="stoprId_"]').length);
});