well i have a row which consist of a table and i have set the rows property to none.when the link is clicked the row propert is set to display that row-but the row consisting of the table is always shown either i click it or i dont!
the code is as follows,this the javascript function for displaying the row:
CODE
<script language="javascript">
function fn(id)
{
document.write(id);
if(id=='link_city')
{
document.write("print table");
document.getElementById('tab_city').style.display = '';
}
</script>
it goes in the function once the link is clicked and prints "print table" but dsnt do any thing afta that
Now here is the code where the links and the row+table are
CODE
<html>
<head><title>ADD ORGANIZATION INFORMATION</title></head>
<body>
<tr>
<td>
<form name="add_orginfo" action="" method="post">
<a href="#" id='link_city' onclick="fn('link_city')">CITY</a>
</td>
</tr>
<tr id='tab_city' style='display:none;'>
<td>
<table border=1>
<tr><td>kk</td></tr>
<tr><td>ll</td></tr>
</table>
</td>
</tr>
now when the page is shown the first time row+table is still displayed thoughthe row was set to null.
i dono wat to do?
Any help/suggestions wud be appreciated!