View Full Version : Interact With a Form

08-21-2016, 06:24 PM
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:

<!DOCTYPE html>
<meta charset=utf-8 />
<title>JS Bin</title>
<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">

If you can help me out, I would greatly appreciated. Or if you know what this is call, I can just look it up.

08-21-2016, 07:14 PM
I'm not sure what your question is but if you say that you're clicking "add" to increase the number of fields on your form, you've forgotten to post your JavaScript so that we can see what's happening.

Or are you wanting somebody to write the JavaScript behaviour for you? If that's the case, we would appreciate you actually trying to do this yourself first, at least in part.

Alternatively, if you want somebody to write your code for you, you might consider hiring somebody. We have a paid help forum where you can post work requests http://www.dynamicdrive.com/forums/forumdisplay.php?30-General-Paid-Work-Requests