JSFiddle - React, Tailwind, and code Playground
HTML
<div id="general">ds</div>
<div id="general">ds</div>
JavaScript
$('div').filter(function(){ return this.id == 'general';})[1].style.color = '#fcc';
<div id="general">ds</div>
<div id="general">ds</div>
$('div').filter(function(){ return this.id == 'general';})[1].style.color = '#fcc';