show / hide input fields

Discussion in 'Programming/Scripts' started by edge, Nov 19, 2007.

  1. edge

    edge Active Member Moderator

    I've been at this for some time now, but can not get it to work as my JavaScript coding is not really good.

    I'm trying to make a form with 3 options that are selectable with radio buttons.

    Radio button 1 linked to option A
    Radio button 2 linked to option B
    Radio button 3 linked to option C
    (options are all different input fields.)

    When the page loads it needs to show the 3 radio buttons and option A.
    Option B and C should NOT show.

    When the user selects radio button 2, option B need to be shown.
    A and C should NOT been shown.

    When the user selects radio button 3, option C needs to be shown.
    A and B should NOT been shown.

    Anyone here who might have a small demo code on something like this?

    Thank you
     
  2. falko

    falko Super Moderator ISPConfig Developer

Share This Page