Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Making new field by calling event onchange

New Here ,
May 14, 2010 May 14, 2010

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

353
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , May 14, 2010 May 14, 2010

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

--

Adam

Translate
LEGEND ,
May 14, 2010 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 14, 2010 May 14, 2010

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

Is it only related to the client scripting ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 14, 2010 May 14, 2010
LATEST

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

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources