Hiding a description in a dynamic table
<p>I have a table that is created using PHP and when you click on the name of the item I want the description to show.</p>

<pre><code>&lt;table border="1" bordercolor="#000000"&gt;
    &lt;tr class="trintial"&gt;
    &lt;th width="50px"&gt;&lt;input type="checkbox" readonly="readonly" checked="checked" /&gt;&lt;/th&gt;
    &lt;th width="300px"&gt;To-Do Item&lt;/th&gt;
    &lt;th width="100px"&gt;Priority&lt;/th&gt;
    &lt;th width="100px"&gt;Due Date&lt;/th&gt;
    &lt;/tr&gt;

    &lt;?php
    $i=0;
    while ($i &lt; $num) 
    {
         $entrynum=mysql_result($result,$i,'todo.entry');
             $f2=mysql_result($result,$i,'todo.item');
         $f3=mysql_result($result,$i,'todo.priority');
         $f4=mysql_result($result,$i,'todo.duedate');
         $f5=mysql_result($result,$i,'todo.description');
     ?&gt;

     &lt;tr id="&lt;?php echo "row$entrynum"; ?&gt;" class="trintial"&gt;
        &lt;td&gt;&lt;input type="checkbox" onchange="change(this,&lt;?php echo "row$entrynum"; ?&gt;)" name="&lt;?php echo "box$entrynum"; ?&gt;" value="checked" /&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $f2; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $f3; ?&gt;&lt;/td&gt;
        &lt;td&gt;&lt;?php echo $f4; ?&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;?php
    $i++;
    }
    mysql_close($con);
      ?&gt;
&lt;/table&gt;
</code></pre>
