Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-05-2009, 07:14 PM #1
- Join Date
- May 2003
- Jewett City, CT
- Thanked 0 Times in 0 Posts
Dynamically add textbox for user entry and saving data entered
I have an ASP page that displays, along with other data, a list of items that refer to a specific element in a database. Instead of adding an Add button, I would like to display a text box below the last item in the list to have the user input any new data. Once they enter the data and hit Enter, the data they enter should then be added to the list and another text box added beneath this item (just as forms and tables in Access do).
However, I'm not sure how to implement this functionality. Can someone please help me out?
05-05-2009, 07:54 PM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,508 Times in 2,486 Posts
<body onload = "addElement()">
newdiv.innerHTML = "Item " + num + " " + "<input type='text' size = '60' name='poll_option+num' onblur = 'capture(this);addElement()'/>"
"He has been in the final of the tournament before, and people often go on from there to win it ...." Snooker commentator.
Last edited by Philip M; 05-05-2009 at 07:58 PM.