title: jQuery, how to get value of a specific checkbox in table row?
body: <p>I have table with multiple rows but its row cotain 3 checkbox and button. Now, I want to update db table with respect to this button and the check box. But, the problem is that I am not able to get the value of the check box when I clicked on each rows button. Please find the below code and let me know how can I get the value as per button on each row. </p>
  
  <pre><code>&lt;table width="100%"&gt;
    &lt;tr class="tbrow"&gt;
      &lt;td width="12%"&gt;
        &lt;span class="name"&gt;test.html&lt;/span&gt;
      &lt;/td&gt;
      &lt;input type="hidden" value="0" class="file_id" /&gt;
      &lt;td width="5%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="checkbox" value="1" class="read" title="read" /&gt; Read
        &lt;/span&gt;
      &lt;/td&gt;
      &lt;td width="5%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="checkbox" value="1" class="write" title="write" /&gt; Write
        &lt;/span&gt;
      &lt;/td&gt;
      &lt;td width="7%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="checkbox" value="1" class="download" title="download" /&gt; Download
        &lt;/span&gt;
      &lt;/td&gt;
      &lt;td width="5%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="checkbox" value="1" class="share" title="share" /&gt; Share
        &lt;/span&gt;
      &lt;/td&gt;
      &lt;td width="80%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="submit" name="assign" class="assign" title="Submit" value="Submit" /&gt;
        &lt;/span&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class="tbrow"&gt;
      &lt;td width="12%"&gt;
        &lt;span class="name"&gt;testing.doc&lt;/span&gt;
      &lt;/td&gt;
      &lt;input type="hidden" value="1" class="file_id" /&gt;
      &lt;td width="5%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="checkbox" value="1" class="read" title="read" /&gt; Read
        &lt;/span&gt;
      &lt;/td&gt;
      &lt;td width="5%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="checkbox" value="1" class="write" title="write" /&gt; Write
        &lt;/span&gt;
      &lt;/td&gt;
      &lt;td width="7%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="checkbox" value="1" class="download" title="download" /&gt; Download
        &lt;/span&gt;
      &lt;/td&gt;
      &lt;td width="5%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="checkbox" value="1" class="share" title="share" /&gt; Share
        &lt;/span&gt;
      &lt;/td&gt;
      &lt;td width="80%"&gt;
        &lt;span class="action"&gt;
          &lt;input type="submit" name="assign" class="assign" title="Submit" value="Submit" /&gt;
        &lt;/span&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Now, When I click on read check box of first row and click submit, it should pickup this value along with the hidden value of class="file_id" value. </p>
  
  <p>Similary, when I click on submit in second row, it should pickup only those checkbox value in the second row only vice versa. </p>
  
  <p>Please check and help me on the code. </p>
  
  <p>Thanks in advance for your time. </p>
  
  <p>Thanks!
  Robin </p>