Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a flexible way of creating an "adaptable" form using jQuery?

Tags:

jquery

forms

I've got a requirement to build a form. The user would like to complete the form in a linear way, with the form adapting to their choices as they're made.

I could do this as a series of if/else statements in jQuery with some onChange events. However, this could become tedious. I was wondering, is there was a pattern/best practice for this scenario?

I guess it would be almost wizard-like, except the form fields would vary depending on their selections... perhaps ~3 stages.

like image 465
Chaddeus Avatar asked Oct 10 '22 19:10

Chaddeus


1 Answers

I just spotted this in another question and thought it might be sort of what you're after... I've not been able to have much of a play with it yet though, so i'm not 100% sure!

jQuery.wizard

like image 141
Louis Fellows Avatar answered Oct 14 '22 05:10

Louis Fellows