Click to See Complete Forum and Search --> : is this possible - expanding/collapsing forms?


rymurphy
04-15-2003, 01:17 PM
i am currently researching the best way to create a form that depending on certian answers given will/or will not have to answer certian other questions. if certian answers are given then i want the other fields to appear in the form if not then i want them to be hidden - is this possible in js or is it better using something else?

FredLabrosse
04-15-2003, 01:42 PM
yeah, i want to do that too, please help us

*coughspamcough*

Vladdy
04-15-2003, 02:09 PM
You can either create new elements on the fly - (document.createElement('input')) or have them initially hidden (display:none) and then show them if your condition is satisfied.

rymurphy
04-15-2003, 03:17 PM
for your help - do you think that programming this on the client side is a good idea or would it be btter to do on the server?