Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2005
    Location
    Soul city
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    add rows on users input

    Hi everyone,
    This seems like I'm crazy about JavaScript coz I'm always up with a question. A few hours ago I had raised a question regarding "listmenu" and I got my share . Thanks to all for sharing their wisdom.

    My question here is: How do I add/ delete rows on users input? I have a textbox for users to input the no. of rows they want. Initially there are 3 rows shown with a value "3" in the textbox.

    Function:
    If a user inserts "4" in the textbox then one more row will be added next to the third row and so on. And If a user inserts "2" then the third row will be deleted and so on.

    Any solution there?

    Thanx!

    Regards,
    Soulfly

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Did Bill Posters already address this problem here?
    He already gave you a link to a tutorial on how to add/delete HTML table row that contains fields.
    You already got the base script, you just need to add that input number of rows thingy.
    Last edited by glenngv; 01-18-2006 at 06:59 AM.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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