code help.

Discussion in 'JavaScript' started by izlik, Aug 24, 2008.

  1. #1
    I was looking for some kind of code that will do the things that the the image bellow shows.
    Several options, and when you press one there is different text in each window. i belive this could be javascript but im not 100% sure.

    I have no idea what this is one is called so i hope someone know where i can find one or someting simillair.

    [​IMG]
     
    izlik, Aug 24, 2008 IP
  2. izlik

    izlik Well-Known Member

    Messages:
    2,399
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    185
    #2
    noone? :( .
     
    izlik, Aug 26, 2008 IP
  3. KatieK

    KatieK Active Member

    Messages:
    116
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #3
    If the id of your textarea element is "textbox", you can do this in your HTML:

    <input type="radio" value="three" name="group1" 
    onclick="document.getElementById('textbox').value='whatever';"/>
    Code (markup):
    The onclick event simply changes the value of the existing textarea.
     
    KatieK, Aug 27, 2008 IP