Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2005, 07:06 AM
Authorized User
 
Join Date: Sep 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Nitin_sharma Send a message via Yahoo to Nitin_sharma
Default Div Invisibility

Hi Guys,
I am trying to make a div invisible and make it visible only when YES radio button is checked on the screen.
I am not able to achieve this , any help would be appreciated.
The Code is given below:

<tr CLASS=TRBlueBg>
<td align=right>&nbsp;&nbsp;&nbsp;Auto Delete </td>
<td><INPUT TYPE="radio" NAME="auto_delete" value=1 >Yes
<INPUT TYPE="radio" NAME="auto_delete" value=0 checked>No</td>
<td colspan="6">&nbsp;&nbsp;</td>
</tr>

<DIV name="sampleDiv" id="sampleDiv" "display:none">
<tr CLASS=TRBlueBg>
<td align=right>Expiry Date&nbsp;&nbsp;</td>
<td> <input type="text" disabled name="getexpirydate" size="30" maxlength="100">
<td> <input type="hidden" name="expirydate" size="30" maxlength="100">
</tr>
</DIV>
Cheers
Nitin

 
Old February 4th, 2005, 01:20 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Modify:

<DIV name="sampleDiv" id="sampleDiv" style="display:none">

Use javascript to set display as none:

document.getElementById("-Column name-").style.display = "none";

Om Prakash





Similar Threads
Thread Thread Starter Forum Replies Last Post
Div Invisibility Nitin_sharma HTML Code Clinic 5 February 20th, 2011 09:42 PM
div within a div and inherting the height brettdavis4 CSS Cascading Style Sheets 1 January 23rd, 2007 09:59 AM
Div shifts in IE abq23 CSS Cascading Style Sheets 2 July 29th, 2006 04:29 PM
Div again... Nitin_sharma HTML Code Clinic 3 February 11th, 2005 04:28 AM
div DSteven CSS Cascading Style Sheets 2 February 9th, 2005 11:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.