When I click on an "Add" button, it would create a new form with the "First Name", "Last Name" field and 2 textboxes, just like the original.
So if I click on the "Add" button 5 times, it would create 5 new forms for me. Same idea applies for the "Delete" button.
Here's my code:
If you can help me out, I would greatly appreciated. Or if you know what this is call, I can just look it up.Code:<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>JS Bin</title> </head> <body> <FORM NAME="myForm"> First Name: <input type="text" name="1stName" ><br /> Last Name: <input type="text" name="lastName" ><br /><br /> <input id="bu_add" type="button" value="Add" > <input id="bu_delete" type="button" value="Delete"> </FORM> </body> </html>



Reply With Quote

Bookmarks