|
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.
|
|
|
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.....
|
|
|
Thank you.. i got this worked..
|
|
|
|
|
|
|
|
|
// |