title: Fetching value from particular cell using jquery
body: <p>note : firstly i select the row and below code will be used to fetch id</p>
  <p>var allocationid = $(this).parents(&quot;tr&quot;).children(&quot;td&quot;).eq(0).text();</p>
  <p>my jquery code .. using eq .</p>
  <p>but i dont want to use eq . i want in dynamic way. fetch with the help of column name</p>
  <p>//table format
  table has thead and tbody tag</p>
  <pre><code>&lt;table&gt;
  &lt;thead&gt;
        &lt;tr&gt;
            &lt;th&gt;ID&lt;/th&gt;
            &lt;th&gt;name&lt;/th&gt;
        &lt;/tr&gt;&lt;br&gt;
  &lt;thead&gt;
  &lt;tbody&gt;
       &lt;tr&gt;
       &lt;td&gt;01&lt;/td&gt;
       &lt;td&gt;joe&lt;/td&gt;
       &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <pre><code>let colName_NPDId = 'NPDId';
      let index1 = $(this).closest(&quot;table&quot;).find(`thead tr th:contains(${colName_NPDId})`).index();
      let npdid = $(this).closest(&quot;tr&quot;).children(&quot;td&quot;).eq(index1).text();
  </code></pre>
  <p>this code I Used (reference of this comment) but this code fetch value of hidden column only(jqgrid). please help me out</p>