Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-06-2007, 08:44 PM   PM User | #1
danny123
New to the CF scene

 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
danny123 is an unknown quantity at this point
TestArea Invisible

Hi there,

In my asp page i am trying to put the fucntionality that when user clicks on one of the radio button then one of the textArea gets invisible to user.
I have seen some example of style.visibility on google but could not exactly figure out how to use tht.

Please advice.

Thanks
Danny
danny123 is offline   Reply With Quote
Old 09-06-2007, 09:15 PM   PM User | #2
Daemonspyre
Regular Coder

 
Join Date: Mar 2007
Posts: 505
Thanks: 1
Thanked 19 Times in 19 Posts
Daemonspyre is on a distinguished road
This is not done in ASP but in JavaScript.

However, it's fairly simple:

Code:
<input type="radio" name="R1" value="Radio1" onclick="document.getElementById('textArea').style.display='none';" checked />Hide Textarea<br />
<input type="radio" name="R1" value="Radio2" onclick="document.getElementById('textArea').style.display='';" />Show Textarea<br />
<textarea id="textArea" rows="3" cols="10" name="myTextarea" style="display: none;"></textarea>
__________________
Quote:
To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
Please, if you found my post helpful, pay it forward. Go and help someone else today.

Last edited by Daemonspyre; 09-06-2007 at 09:17 PM.. Reason: In IE, it's CHECKED not SELECTED
Daemonspyre is offline   Reply With Quote
Old 09-07-2007, 09:49 PM   PM User | #3
danny123
New to the CF scene

 
Join Date: Sep 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
danny123 is an unknown quantity at this point
Thanks alot for reply. It worked.

Best
Danny
danny123 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:49 AM.


Advertisement
Log in to turn off these ads.