codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Hi!! Problem with div in html  haripriya amaresan at 06:12 on Thursday, December 14, 2006
 

Hello,

I have to make a div area visible on clicking a radio button. The code is below..
----------------------------------
<table>
<tr>
<td colspan=3>
<fieldset>
<legend>Reminder Informations</legend>
<table width=100% height=100%>
<tr>
<td >
<fieldset>
<legend>Date</legend>
<table width=100% height=100%>
<tr>
<td width="20%">From:</td>
<td align=left width="40%"><input type=text size=15 name="txtSDate"> </td>
<td align=left width="40%"> </td>
</tr>
<tr>
<td width="20%">To:</td>
<td width="70%" align=left>
<input type=radio name=radEDate> Default <input type=radio name=radEDate> Specify </td>
---------------------------
onClicking the radio button "specify" a div area containing a textbox should be added below this in a new row like this.
------------------------------------
<tr>
<div id='eDateDiv' style='display:none;'>
<table width=100% height=100%>
<tr>
<td width="60%" align=left>
<input type=text size=15 name="txtEDate" > </td>
</tr>
</table>
</div>
</tr>
------------------------------

The problem is this is not working.Is there any other way to display this.
Pls Help.

Thanks.

  Re: Hi!! Problem with div in html  dhanalakshmi at 10:20 on Friday, December 15, 2006
 

Hello Put the div inside the <td> tag and not outside.
Hope this helps.

<tr>
<td>
<div id='eDateDiv' style='display:none;'>
<table width=100% height=100%>
<tr>
<td width="60%" align=left>
<input type=text size=15 name="txtEDate" > </td>
</tr>
</table>
</div>
</td>
</tr>

This will work sure.....

  Re: Hi!! Problem with div in html  haripriya amaresan at 07:33 on Saturday, December 16, 2006
 

Thank you.. i got this worked..

  Re: Hi!! Problem with div in html  stura at 13:39 on Monday, April 23, 2007
 

i got the same hikaye, thanks








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem
•  Re: import contacts of msn/yahoo
•  Cookies and Threads C++
•  right justify a background in a table?
•  Help with Loop (C++/MFC)
•  Help with Loop (C++/MFC)


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007