Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery : find table row containing two cells that have specific text
    primarykey
    data
    text
    <p>I have a table with two columns for codes.I named them <code>Main Code</code> and <code>Sub Code</code>. I have 2 text box for <strong>search</strong> in table that I want when user fill up them and press <kbd>Enter</kbd> key, change <code>background-color</code> of the row that contain <code>Main Code</code> and <code>Sub Code</code> . I see this topic :</p> <p><a href="https://stackoverflow.com/questions/6135665/jquery-find-table-row-containing-table-cell-containing-specific-text">find table row containing table cell containing specific text</a></p> <p>but it don't know how to check 2 cell instead of one cell.please help me</p> <p>thanks</p> <p><strong>Edit 1)</strong></p> <p>this is an example of my table:</p> <pre><code>&lt;table border="1" cellpadding="0" cellspacing="0" style="width: 400px; text-align: center;"&gt; &lt;tr style="background-color:Aqua"&gt; &lt;th style="width: 25%"&gt; Main Code&lt;/th&gt; &lt;th style="width: 25%"&gt; Sub Code&lt;/th&gt; &lt;th style="width: 25%"&gt; ID&lt;/th&gt; &lt;th style="width: 25%"&gt; Desc&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="width: 25%"&gt; 10000&lt;/td&gt; &lt;td style="width: 25%"&gt; 1&lt;/td&gt; &lt;td style="width: 25%"&gt; 454&lt;/td&gt; &lt;td style="width: 25%"&gt; some Desc&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="width: 25%"&gt; 10000&lt;/td&gt; &lt;td style="width: 25%"&gt; 2&lt;/td&gt; &lt;td style="width: 25%"&gt; 123&lt;/td&gt; &lt;td style="width: 25%"&gt; some&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="width: 25%"&gt; 10001&lt;/td&gt; &lt;td style="width: 25%"&gt; 1&lt;/td&gt; &lt;td style="width: 25%"&gt; 454&lt;/td&gt; &lt;td style="width: 25%"&gt; some&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload