Results 1 to 2 of 2

Thread: Interact With a Form

  1. #1
    Join Date
    Aug 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Interact With a Form

    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:

    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>
    If you can help me out, I would greatly appreciated. Or if you know what this is call, I can just look it up.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    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/f...-Work-Requests
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. Replies: 9
    Last Post: 01-29-2014, 01:58 AM
  2. Interact With a Form
    By locbtran in forum JavaScript
    Replies: 1
    Last Post: 10-26-2012, 07:00 AM
  3. Interact With Facebook & Twitter
    By locbtran in forum PHP
    Replies: 2
    Last Post: 10-06-2012, 06:42 PM
  4. Replies: 0
    Last Post: 12-13-2010, 09:40 PM
  5. How to interact pages!
    By Mob1us in forum JavaScript
    Replies: 2
    Last Post: 08-25-2006, 08:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •