This is my table, use tr and td.
NAME Address CITY STATE ABC 123 A CA AB8 123 B CA AFC 456 B TX POI 985 C KJ
After the document is ready, it will already hide everything.
Now I want the row to display all tr: -> Column (4) = CA "and" Column (3) = B
I am tired of my code:
$("table[id=maintablex] tr td:nth-child(4):contains('CA'), table[id=maintablex] tr td:nth-child(3):contains('B')").closest('tr').show();
But it shows that everyone has (4) = CA, and (3) = B ... My code was "OR", can anyone help me with this?
Added FULL HTML CODE:
<table id="table"> <tr> <td>ABC</td> <td>123</td> <td>A</td> <td>CA</td> </tr> <tr> <td>ABC</td> <td>1234</td> <td>B</td> <td>CA</td> </tr> <tr> <td>AUF</td> <td>123</td> <td>C</td> <td>TX</td> </tr> <tr> <td>ABC</td> <td>456</td> <td>B</td> <td>TX</td> </tr> </table> <script language="Javascript"> $("table[id=table] tr").hide(); </script>
The result I want to show is only:
AB8 123 B CA
user1074438
source share