mili
04-09-2003, 01:50 PM
DYNAMIC FORM GENERATION
I have a dynamic form where a user can fill out any number of fields in a form.
I have a small peice of JS that adds table rows with form fields by clicking a button (plus).
Each row contains a drop down select box with 3 values.Each value in the drop-down is associated with a form.
Ex: On selecting value 1 from the drop-down, I should populate form 1 and so on.(I have a JS for this as well)
1.The problem is, it populates the form ouside of the table. I want it to appear under the select box.Now when I add a new row using the plus button, I want to display another select box after form 1.The value selected from this box should populate the corresponding form under it and so on...(I have this partially working)>How can I do this?
2. I have a minus botton that deletes the last row from the table.Instead,I want to be able to do multiple delete by clicking the check box.This delete function should delete the entire section including the form.How can I do this?
I've attached a zip file of my partially working code.
thanks in advance.
I have a dynamic form where a user can fill out any number of fields in a form.
I have a small peice of JS that adds table rows with form fields by clicking a button (plus).
Each row contains a drop down select box with 3 values.Each value in the drop-down is associated with a form.
Ex: On selecting value 1 from the drop-down, I should populate form 1 and so on.(I have a JS for this as well)
1.The problem is, it populates the form ouside of the table. I want it to appear under the select box.Now when I add a new row using the plus button, I want to display another select box after form 1.The value selected from this box should populate the corresponding form under it and so on...(I have this partially working)>How can I do this?
2. I have a minus botton that deletes the last row from the table.Instead,I want to be able to do multiple delete by clicking the check box.This delete function should delete the entire section including the form.How can I do this?
I've attached a zip file of my partially working code.
thanks in advance.