You must Sign In to post a response.
  • Category: JQuery

    How to add multiple textboxes and inserting to a DB using JQuery?

    Hello everyone,
    I am trying to add a button so if a user clicks that button, it will add a new text box and a drop down list. using Jquery.
    After that, there will be another box to save those textboxes and dropdownlists to a database.
    How do I do that? I searched the Internet but with no luck.
    Also, I want those all text boxes to be inserted in one field in a database table
    I tried doing that in a different way, but I think it would be better if i used jQuery

    Thank you,
  • #761133
    Hi Moe,
    There are various was to do this. You need to create a function and then add the controls to the current page.
    You also need to make sure that there should be a container control which will hold these dynamically created controls.
    Once you create the controls, in the same way, you can retrieve them with the values using the container control.
    Below is a link where you can find the sample code which will be helpful to you:

    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • #761239
    Thanks for the response
    I found many codes to add text boxes using jqueries, but the problem is non of them has the ability to save in a DB
    Any ideas?

Sign In to post your comments