Forum Moderators: open

Message Too Old, No Replies

DIV not getting hidden

not able to hide a nested div

         

kadnan

7:23 am on Oct 6, 2005 (gmt 0)

10+ Year Member



ok another issue,i have the following HTML

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="19%" class='tablerowscenteralign'>Display Text</td>
<td width="28%">
<input name="menu_category_name" type="text" id="menu_category_name" onChange="javascript:blurLinkMessage(0)">
<div id="divDisplayText" style="color:#FF0000;font-size:9px;display:none"></div>
</td>
<td width="10%" align="center" class='tablerowscenteralign'>Status</td>
<td width="43%" align="left" class='tablerowscenteralign'><div align="left">
<input name="status" type="radio" value="1" checked>
Active
<input name="status" type="radio" value="0">
Inactive</div></td>
</tr>
<tr>
<td class='tablerowscenteralign'>Name</td>
<td>
<input name="menu_category_code" type="text" id="menu_category_text" onChange="javascript:blurLinkMessage(1)">
<div id="divLinkCode" style="color:#FF0000;font-size:9px;display:none"></div>
</td>
<td align="center" class='tablerowscenteralign'>Module</td>
<td align="left" class=''>
<select name="module_id" tabindex="5" id="idMod">
<option value="0" selected>Select</option>

</select></td>
</tr>
<tr>
<td class='tablerowscenteralign'>Description</td>
<td><textarea name="menu_category_desc" id="menu_category_desc"></textarea></td>
<td align="center" class='tablerowscenteralign'>&nbsp;</td>
<td align="left" valign="top" class='tablerowscenteralign'>&nbsp;</td>
</tr>
<div id="myLink" style="display:block ">
<tr>
<td class='tablerowscenteralign'>Links atus </td>
<td colspan="3" class='tablerowscenteralign'>
<div align="left">
<input name="radiobutton" type="radio" value="radiobutton">
Active
<input name="radiobutton" type="radio" value="radiobutton">
Inactive <a href="javascript:hideme()">hide</a> </div></td>
</tr>
</div>
</table>

i am unable to hide the DIC have ID "myLink"

any Help?I even removed the class from other TRs but no difference

Thanks

Bernard Marx

7:32 am on Oct 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<div>
<tr>
....
</tr>
</div>

This structure is "illegal".

Hide the TR instead.