-
div tag problem...
In my web page i am using one contact form. In that form i want to hide some rows initially. I am using the div tag. But the particular rows still displayed. I am using the following tag. div id="hide" style="display:none".
I don't know why this is not working ? can anyone knew the answer ?
----------------
suresh
-
Re: div tag problem...
i had the same situation, ie to hide the details by clicking on the image......for that i have used the table which has the details.......
function showHide(id)
{
obj=document.getElementById(id);
obj.style.display="none";
}
is the javascript code.
<img src="" onclick="showHide('tab1')">
<table id="tab1">
the details......
</table>
and it worked for fine for me......so try this......
hope this would be useful for u....
-
Re: div tag problem...
sorry this is the html part code......
img src="" onclick="showHide('tab1')" --image tag
table id="tab1"
the details......
/table
-
Re: div tag problem...
hi elango,
Thanks for your reply. I know if we using the table its working fine. Here i have 10 rows. i want to hide these rows according to the selection of select box. That's why i want to hide particularly the rows. Because if i use 10 tables for 10 rows then it looking very poor coding. That's why i need a help.
Anyway thanks for your information...Expect a good posts from you.
----------------
suresh