...

View Full Version : TestArea Invisible



danny123
09-06-2007, 08:44 PM
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

Daemonspyre
09-06-2007, 09:15 PM
This is not done in ASP but in JavaScript.

However, it's fairly simple:



<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>

danny123
09-07-2007, 09:49 PM
Thanks alot for reply. It worked.

Best
Danny



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum