title: Get value of TD where Checkbox is checked in table
body: <p>This is the code, im trying to get the value of each TD with id=tel2 and checkbox is checked and store all values in textarea separated with Comma ','
  Any suggestion ?</p>
  
  <pre><code>                echo "&lt;div&gt;";
  
                  if ($result-&gt;num_rows &gt; 0) {
  
  
                      echo "&lt;table border='1' cellpadding='10'&gt;"; 
  
                      echo "&lt;tr&gt; &lt;th&gt;&lt;/th&gt; &lt;th&gt;Nom&lt;/th&gt; &lt;th&gt;Prenom&lt;/th&gt; &lt;th&gt;Tel&lt;/th&gt; &lt;th&gt;Classe&lt;/th&gt; &lt;th&gt;Annee&lt;/th&gt; &lt;/tr&gt;";
  
                      while($row = $result-&gt;fetch_assoc()) {
                          echo "&lt;tr&gt;";
  
                          echo "&lt;td&gt; &lt;input type=\"checkbox\" id=\"case\"&gt;&lt;/td&gt;";
  
                          echo "&lt;td&gt;" . $row['nom'] . "&lt;/td&gt;";
  
                          echo "&lt;td&gt;" . $row['prenom'] . "&lt;/td&gt;";
  
                          echo "&lt;td id=\"tel2\"&gt;" . $row['tel'] . "&lt;/td&gt;";
  
                          echo "&lt;td&gt;" . $row['classe'] . "&lt;/td&gt;";
  
                          echo "&lt;td&gt;" . $row['annee'] . "&lt;/td&gt;";
  
                          echo "&lt;/tr&gt;";
                      }
  
                          echo "&lt;/table&gt;";
                  }
  
                  echo "&lt;/div&gt;";
  
                  ?&gt;
  </code></pre>