JSFiddle - React, Tailwind, and code Playground
by bighostkim
HTML
<input id="myinput" />
<select id="myselect">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<table>
<tr>
<th>1</th>
</tr>
<tr>
<td>1</td>
</tr>
</table>
JavaScript
$("#myinput, #myselect").bind("change", function() {
alert("foo")
});
$("tr:has(td)").css({background:"#CCC"});