Hi everyone,
I need to create some form fields by using Javascript.
It should work like this: when people click the buttom "Add a new record", a form field will be created with last name, first name, address and such.. People can fill in the form and submit. I need allow the people click as much as they want.
I use onClick
<input type="button" value="Click to Add a new record" onclick="createForm()">
but in createdForm(), should I use
document.createElement or
document.write or something else?
How can I let people keep adding the new form fields?
Thank you for any help!!
I need to create some form fields by using Javascript.
It should work like this: when people click the buttom "Add a new record", a form field will be created with last name, first name, address and such.. People can fill in the form and submit. I need allow the people click as much as they want.
I use onClick
<input type="button" value="Click to Add a new record" onclick="createForm()">
but in createdForm(), should I use
document.createElement or
document.write or something else?
How can I let people keep adding the new form fields?
Thank you for any help!!