JSFiddle - React, Tailwind, and code Playground

by learner001

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<table id="table1" class="table">
    <tbody>
        <tr>
            <td>First 1</td>
            <td>2</td>
            <td>First 3</td>
        </tr>
        
        <tr>
            <td>Second 1</td>
            <td> 2</td>
            <td>Second 3</td>
        </tr>
        
        <tr>
            <td>Third 1</td>
            <td>2</td>
            <td>Third 3</td>
        </tr>
    </tbody>
</table>

JavaScript

$("#table1").children("tbody").children("tr").children("td:nth-child(2)").each(function () {
	if($(this).html() == '2')
  {
  	console.log('true');
  }
   
});