<title>jQuery :only-child Selector Select Only Cell of a Table</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
$(document).ready(function(){
$('.mybtn').click(function(){
$( "table tr td:only-child" ).css( "background", "yellow" );
border-collapse:collapse;
.mytable tr th, .mytable tr td{
<h2>jQuery :only-child Selector Select Only Cell of a Table</h2>
<p><button type="button" class="mybtn">Click to Color Row Item</button></p>
<td>Microsoft Dynamics</td>
<td>Email Management Software</td>
<td colspan="2">Above are the Management softwares while below is an Antivirus.</td>