can't display value
<p>Goal:<br>
Display the row and its value that has attribute colspan.</p>

<p>Problem:<br>
Don't know how to display the row and its value after clicking on the link "display".</p>

<p>// Fullmetalboy</p>

<hr>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
    &lt;head&gt;
        &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;

        &lt;link rel="stylesheet" type="text/css" href="layout.css" /&gt;

        &lt;script src="jquery-1.6.1.js" type="text/javascript"&gt;&lt;/script&gt;
        &lt;script src="custom.js" type="text/javascript"&gt;&lt;/script&gt;    
        &lt;title&gt;index&lt;/title&gt;

    &lt;/head&gt;

    &lt;body&gt;

        &lt;table border="1" SUMMARY="aaa" id="tblProjekt"&gt;
          &lt;thead&gt;
            &lt;tr&gt;
              &lt;th&gt;Projekt name&lt;/th&gt;
              &lt;th&gt;Total time&lt;/th&gt;
              &lt;th&gt;Task&lt;/th&gt;
              &lt;th&gt;comments&lt;/th&gt;
            &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
            &lt;tr&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr id="asdf"&gt;
                &lt;td colspan="4"&gt;bbbb&lt;/td&gt;
            &lt;/tr&gt;           
            &lt;tr&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
            &lt;/tr&gt;       
          &lt;/tbody&gt;
        &lt;/table&gt;        

        &lt;a href="" class=submit&gt;display&lt;/a&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<hr>

<pre><code>$(document).ready(init);

function init() 
{
    $("#asdf").hide();

    var tabell = document.getElementById("tblProjekt");
    var newRow = tabell.insertRow(tabell.rows.length);
    var newAttrColspan = document.createAttribute("colspan");
    newAttrColspan.nodeValue = 4;

    newRow.className = "aaa";

    var newCell = newRow.insertCell(0);
    newCell.setAttributeNode(newAttrColspan);
    newCell.innerHTML = "asdf";

    $(".aaa").hide();
}

$('.submit').click(function()
{
    $(".aaa").show();

    $("#asdf").show();

}); // saveForm
</code></pre>
