jQuery Dynamic Form
Posted on : 21-11-2008 | By : Derek | In : Posts
Tags: coding, dynamic, form, html, javascript, jQuery
9
This code has been completely re-written as a proper jQuery plugin.
See this post for the updated version.
——————–
Original post:
Dealing with forms can sometimes be tricky. For example a user entering information into a form might need to add or remove certain elements to/from the form as they see fit.
A real-world example of this might be a pizza ordering form where a user might need to add toppings to the pizza. It is obvious that simply adding a pre-determined number of fields will not do and in many cases is overkill as it depends on the user’s preference which cannot be reliably pre-determined.
Here is a demo of a dynamic form powered by jQuery.
Download the source code here: {download removed} See this post for the updated version.
It’s a basic implementation and can be used for simple solutions, or customized quite easily for more complex ones.

