Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to add same form below the first form when I have clicked on the add more form button [closed]

When I will clicked on add more the same form will be display. I need help for developing the code for that.

I have tried the code which is given in the stack overflow. But their is code for different fields. And I want the code for same field. So place help me out for that.

like image 465
Sonal Gabhane Avatar asked Oct 18 '25 00:10

Sonal Gabhane


1 Answers

The parameters to the addMoreForm method might be like: formName, fieldName, fieldType, formAction, formMethod etc to create a form through javascript, here are some links for creating elements in javascript ( is an element :-) ):

<input type="button" onClick="addMoreForm('the parameters come here*')" value="Add More" />
like image 156
Reyhane Avatar answered Oct 19 '25 14:10

Reyhane



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!