I have a table with two columns for codes.I named them Main Code and Sub Code. I have 2 text box for search in table that I want when user fill up them and press Enter key, change background-color of the row that contain Main Code and Sub Code . I see this topic :
find table row containing table cell containing specific text
but it don’t know how to check 2 cell instead of one cell.please help me
thanks
Edit 1)
this is an example of my table:
<table border="1" cellpadding="0" cellspacing="0" style="width: 400px; text-align: center;">
<tr style="background-color:Aqua">
<th style="width: 25%">
Main Code</th>
<th style="width: 25%">
Sub Code</th>
<th style="width: 25%">
ID</th>
<th style="width: 25%">
Desc</th>
</tr>
<tr>
<td style="width: 25%">
10000</td>
<td style="width: 25%">
1</td>
<td style="width: 25%">
454</td>
<td style="width: 25%">
some Desc</td>
</tr>
<tr>
<td style="width: 25%">
10000</td>
<td style="width: 25%">
2</td>
<td style="width: 25%">
123</td>
<td style="width: 25%">
some</td>
</tr>
<tr>
<td style="width: 25%">
10001</td>
<td style="width: 25%">
1</td>
<td style="width: 25%">
454</td>
<td style="width: 25%">
some</td>
</tr>
</table>
1 Answer