I have a table in my HTML,
<table>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>a</td><td>2</td><td>c</td></tr>
<tr><td>x</td><td>2</td><td>3</td></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
</table>
And i wanted to find duplicate contents in the first and the second <td> elements contents.
This is what i got so far:
$(function() {
$("table tr").each(function() {
});
});
I m stuck on selecting the first and the second element and comparing them. Do i just add a class or use jquery selector?