title: How to disable the link if the checkbox is unchecked
body: <p>How can I disable the <strong>link(delete and view)</strong>  if the checkbox is unchecked.</p>
  
  <p>This is my code</p>
  
  <pre><code>&lt;table&gt;&lt;form&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;/th&gt;
              &lt;th style="width:100px;"&gt;&lt;center&gt;Last Name&lt;/center&gt;&lt;/th&gt;
              &lt;th style="width:100px;"&gt;&lt;center&gt;First Name&lt;/center&gt;&lt;/th&gt;
              &lt;th style="width:auto;"&gt;&lt;center&gt;Email&lt;/center&gt;&lt;/th&gt;
              &lt;th style="width:100px;"&gt;&lt;center&gt;Birthday&lt;/center&gt;&lt;/th&gt;
              &lt;th style="width:auto;"&gt;&lt;center&gt;Action&lt;/center&gt;&lt;/th&gt;
          &lt;/tr&gt;
          &lt;?php
          while($row= mysql_fetch_array($result))
          {
              echo "&lt;tr&gt;";
              echo "&lt;td&gt;";
              echo "&lt;input type=\"checkbox\" id=\"box\"&gt;";
              echo "&lt;td&gt;".$row['lastname']."&lt;/td&gt;";
              echo "&lt;td&gt;".$row['firstname']."&lt;/td&gt;";
              echo "&lt;td&gt;".$row['email']."&lt;/td&gt;";
              echo "&lt;td&gt;".$row['bdate']."&lt;/td&gt;";
              echo "";
              echo "&lt;td&gt;&lt;center&gt;";
              echo "&lt;a href=\"delete.php?id=".$row['id']."\" style=\"text-decoration:none\" class=\"btn\" id=\"delete\"&gt;DELETE&lt;/a&gt; ";
              echo "&lt;a href=\"personal_information.php?id=".$row['id']."\" style=\"text-decoration:none\" class=\"btn\" id=\"view\"&gt;VIEW&lt;/a&gt; ";
              echo "&lt;/td&gt;&lt;/center&gt;&lt;/td&gt;";
              echo "&lt;/tr&gt;";
  
          }
          ?&gt;
      &lt;/form&gt;&lt;/table&gt;
  </code></pre>
  
  <p>Here is my <strong>jQuery script</strong>(example if I want to disable VIEW link only)</p>
  
  <pre><code>&lt;script&gt;
          jQuery('#box').click(function () {
      //check if checkbox is checked
      if (jQuery(this).is(':checked')) {
  
          jQuery('#view').removeAttr('disabled'); //enable input
  
      } else {
          jQuery('#view').attr('disabled', true); //disable input
      }
  });
      &lt;/script&gt;
  </code></pre>
  
  <p>I want to disable the each view and delete per row if the checkbox is uncheck how can I do it? or my jQuery is wrong? Can you give me an example for checkall box</p>