<script>
function hide()
{
document.getElementById("xxx").style.visibility='visible';
}
</script>
<tr>
<td>655 3338</td>
<td onclick='hide()'>10-May-2013</td>
</tr>
<tr id='xxx' style='visibility:collapse'>
<td>655 3338</td>
<td>10-May-2013</td>
</tr>
Good day to all, im a newbie in terms of coding in the language of javascript, im developing a simple hide show, a code above(piece of code) is a table when u click the table cell 10-May-2013 some how a table row below will show, and in that event, im correct? What is missing im my code is when i click again the table cell 10-May-2013 it will hide again, or back to its default style(hide or collapse for table).