Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    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>
    Last edited by Daemonspyre; 09-06-2007 at 09:17 PM. Reason: In IE, it's CHECKED not SELECTED
    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.

  • #3
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks alot for reply. It worked.

    Best
    Danny


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •