Skip to main content
New Participant
May 14, 2010
Answered

Making new field by calling event onchange

  • May 14, 2010
  • 1 reply
  • 396 views

I have one drop down box in a form. The value of that box consists of two values, let say "A" and "B". I want situation like following :

For example, when the page is loaded the default value for drop down box is "A".

When I change the value into "B", I want one or more new field appear in the form. Then when I changed the value into "A" again, the field that appeared before, become disappeared.

Is there any reference or code sample to solve this problem ?

Thanks in advance

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    There's nothing server-side in anything you described there.

    --

    Adam

    1 reply

    Inspiring
    May 14, 2010

    This is not really a CF question, as your requirement is mostly on the front end.

    I reckon you're best off googling "jquery dynamic forms", and you should find a bunch of stuff.

    --

    Adam

    nuxierAuthor
    New Participant
    May 14, 2010

    So this problem actually doesn't relate to the server scripting code ?

    Is it only related to the client scripting ?

    Adam Cameron.Correct answer
    Inspiring
    May 14, 2010

    There's nothing server-side in anything you described there.

    --

    Adam