Assuming that you are managing a survey which consists of a question and some options that user can choose from. The form allows you to add more options but the number of options can't exceed 5.
The following form manages the wish list of books you would love to buy. Each book must have three properties which are title, ISBN number and price (in dollar).
Assume that, due to the required naming convention from server, the fields for these properties are named as book[i].title, book[i].isbn and book[i].price, where i is the index number of book which can be 0, 1, 2, and so forth.
The example uses the row option to indicate the field container when using multiple fields in the same row
Sometime, the added fields aren't just simply a normal input such as text box, text area. They can be used with other plugins such as a date picker, an auto-completed control, etc.
In this case, the field should be initially as a normal text input, and then integrated with other plugin after being added.
The following sample code attaches a date picker to newly added input by triggering the added.field.fv event:
You should look at the basic principles when integrating FormValidation with other plugins