title: Why can't validate unchecked value on checkbox item in my html table?
body: <p>i got a html table like this one on my page, witch include a checkbox item, the problem i got is that i want to validate if the checkbox item is checked or not (i mean true or false), but when i validate the value in each record i can't identify when it is unchecked. All i can validate is a checked value, but the else is not working.</p>
  
  <p>here is a snipset of my table where i define the checkbox filed :</p>
  
  <pre><code>   &lt;tr&gt;
     &lt;td&gt;&lt;input type="checkbox" name="f_mark" value="true"&gt;&lt;/td&gt;
     &lt;/tr&gt;
  </code></pre>
  
  <p>and here i got a function where i wan t to validate if it is check or not:</p>
  
  <pre><code>&gt; function hiderow() {
  &gt;        $("input[name=f_mark]:checked").each(
  &gt;             function () {
  &gt;                 var marc = $(this).val();
  &gt;                 if (marc == 'true') {
  &gt;                   alert('checked value');
  &gt;                 } else {
  &gt;                   alert('unchecked value');
  &gt;                 }
  &gt;             }
  &gt;         );    }
  </code></pre>
  
  <p>why i can't identify the unchecked row ???
  is something in definition or validation ??</p>
  
  <p>thanks in advance.
  Sib</p>