Results 1 to 3 of 3

Thread: dynamically display textbox in html using javascript

  1. #1
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default dynamically display textbox in html using javascript

    hi this is santosh first off all thanks in advance to all who r reading my question
    im in prblm in my project in 1 file i have to first display textbox in html statically which will hav + & - button preceding it , & on click of + button one more textbox should appear dynamically & first textbox + button should disapper & it should hav only - button & the textbox which was dynamically generated now on click of first textbox + button should hav + & - button & it should go on. & on click of - button textbox which is in front of it should get deleted.


    here i tried alot but my code is showing + & - button to every textbox that is dynamically generated which is not the requirement plz help me im in great need.

    plz reply as early as possible

    waiting for ur reply

    again thanks in advance

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I don't understand your question - if english is a foreign language for you please use Google Translate. I'll be glad to help once I understand
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    [textbox]
    [textbox]
    + / -


    Then "+" adds a new textbox, and below that new textbox there is again a set of links "+ / -".
    And "-" takes away the last textbox.


    The easier approach will be to have "+" and "-" as part of the page, and the textboxes change. So that means that it will not be a new "+" and new "-", but the same "+" and same "-" always, just with a changing number of textboxes.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •