Note that there are some explanatory texts on larger screens.

plurals
  1. POSelecting specific tds in jQuery
    primarykey
    data
    text
    <p>I want to check checkboxes of the table if the rows contain specific value.</p> <p>Below is my table</p> <pre><code>&lt;table width="100%" cellspacing="0" border="1" style="border-width: thin; border-collapse: collapse; border-color: #999999" id="tableControlFailures"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999"&gt; &lt;input type="checkbox" id="chkCF"&gt; &lt;/td&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999"&gt; C1 &lt;/td&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999" id="tdCFReason"&gt; &lt;input type="text" id="txtCFReason" style="width: 90%" disabled="disabled"&gt; &lt;/td&gt; &lt;td id="CFId" style="display: none"&gt; 22 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999"&gt; &lt;input type="checkbox" id="chkCF"&gt; &lt;/td&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999"&gt; C2 &lt;/td&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999" id="tdCFReason"&gt; &lt;input type="text" id="txtCFReason" style="width: 90%" disabled="disabled"&gt; &lt;/td&gt; &lt;td id="CFId" style="display: none"&gt; 23 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999"&gt; &lt;input type="checkbox" id="chkCF"&gt; &lt;/td&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999"&gt; c &lt;/td&gt; &lt;td style="border-width: thin; border-collapse: collapse; border-color: #999999" id="tdCFReason"&gt; &lt;input type="text" id="txtCFReason" style="width: 90%" disabled="disabled"&gt; &lt;/td&gt; &lt;td id="CFId" style="display: none"&gt; 9 &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>I want to check the rows where hidden column CFId contains 23 &amp; 9.</p> <p>Please suggestion a solution.</p>
    singulars
    1. This table or related slice is empty.
    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.
    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