Suppose I have a drop down box to define how many row of input box, then generate the designated rows of input box, after that each row of input box with attach a drop down box, it can define how many input box of each row, illustrated as below:

Could anyone suggest the snippet for this procedure?
Thanks
I will not give you specific snippet for this, but will give you some tips instead. Here they are:
<div>withform-dynamic-fieldsclass so it will serve as a container for dynamically generated fields),onchangeevent.Example usage of
.delegate()function can be like that:and it will work for every
<select>fields generated dynamically as far as the container with classform-dynamic-fieldsremains their parent element and is not deleted.So, given you the clue about how you can structure your form, how to attach events, what should they do and what event should you use, I would like to…
…encourage you to test different solutions and share information about the progress you have made with solving this issue.
EDIT:
Some working example to encourage you more (see jsFiddle):
HTML:
JavaScript (executed onDomReady):
What you need to do is:
nameattributes of<input>fields,I hope it helped 🙂