JSFiddle - React, Tailwind, and code Playground

by Trần Ngọc Minh

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<h1>Welcome to My Web Page</h1>
<table border="1">
  <tr>
    	<th>Company</th>
    	<th></th>
    	<th>Country</th>
  </tr>
  <tr>
   	 <td>Google</td>
    	<td>Larry Page</td>
   	 <td></td>
  </tr>
  <tr>
    	<td>Apple</td>
   	 <td></td>
    	<td>Sweden</td>
  </tr>
  <tr>
    	<td>Microsoft</td>
    	<td>Bill Gates</td>
   	 <td><span>Mexico</span></td>
  </tr>
</table>

JavaScript

$(document).ready(function(){
 $("td:has(span)").css("background-color", "yellow");
});