title: hiding table row when checkbox clicked
body: <p>I have this Table ,and fetching row using this php code ,when i click on  this checkbox one alert message is shown ,if user click on ok button of that alert, than i want to hide that perticular row. <img src="https://i.stack.imgur.com/lPCY9.png" alt="check box is shown in image  ">  </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 confirm('This action can not be recovered, are you sure you want to HIDE this Candidate? ')\"/&gt;&lt;/td&gt;";
      echo "&lt;/tr&gt;";
  }
  ?&gt;
  </code></pre>