JSFiddle - React, Tailwind, and code Playground
by Addy Osmani
HTML
<!DOCTYPE html>
<html>
<head>
<style>
body { font-size:16px; font-weight:bolder; }
p { margin:5px 0; }
</style>
</head>
<body>
<div id="tester">
<span>Hello</span>
<p id="selected1">Hello Again</p>
<div id="selected2">And Again</div>
<p>And One Last Time</p>
</div>
</body>
</html>
JavaScript
$("#tester").children("#selected1,#selected2").css("color", "blue");