title: hiding row permanently in table
body: <p>I am using this code to display table</p>
  
  <pre><code>    &lt;table&gt;
          &lt;tr&gt;
              &lt;th style="height: 25px"&gt;NAME&lt;/th&gt;
              &lt;th style="height: 25px"&gt;EMAIL&lt;/th&gt;
              &lt;th style="height: 25px"&gt;CELL NO&lt;/th&gt;
              &lt;th style="height: 25px"&gt;CITY&lt;/th&gt;                   
              &lt;th&gt;Hide Candidate&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  
      &lt;?php
      while($data_set1 = mysql_fetch_array($result))
      {
          echo "&lt;tr&gt;";
          echo "&lt;td&gt;{$data_set1['ename']}&lt;/td&gt;";
          echo "&lt;td&gt;{$data_set1['eemail']}&lt;/td&gt;";
          echo "&lt;td&gt;{$data_set1['ecell']}&lt;/td&gt;";
          echo "&lt;td&gt;{$data_set1['ecity']}&lt;/td&gt;";
  
          echo "&lt;td&gt;&lt;input type=\"checkbox\" name=\"hide_cand\" id=\"hide_cand\" onclick=\" return hideRow(this)\"/&gt;&lt;/td&gt;";
  \"/&gt;&lt;/td&gt;";
          echo "&lt;/tr&gt;";
      }
      ?&gt;
  </code></pre>
  
  <p>and using this javascript I am able to hide row of table temporarily ,how to hide it permanantly when table is loaded on page</p>
  
  <pre><code>function hideRow(checkbox)
  {
      if(confirm('This action can not be recovered, are you sure you want to HIDE this Candidate? '))
      {
          checkbox.parentNode.parentNode.style.display = "none";
          return true;
      }
      return false;
  }
  </code></pre>