JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">test</div>
<div id="test:two">test two</div>

JavaScript

$('#test').css('background','red');
$('#test:two').css('background','green');
$(document.getElementById('test:two')).css('background','blue');