| Author |
generating textfields when i click a button
|
kesava chaitanya
Ranch Hand
Joined: Aug 15, 2001
Posts: 140
|
|
hi There is a form which contains a button.whenever i click the button i need to generate text fields .then i enter some value in the textfield.when i click button the entered value in text value is disappering ; i have seen this link but in that example with generation of checkboxed itself they r incrementing values but i dont want like that .i will enter some text and after that when i click button value entered in the first textfield is disapppering. http://www.coderanch.com/t/113635/HTML-JavaScript/generate-checkboxes-increasing-values-clicking
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50677
|
|
|
What this has to do with JSP is beyond me. Moving to the HTML/Javascript forum.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
It is rewriting the text fields each time, basically I would say store the values in an array and repopulate the fields when it adds a new field... There is probably a better way to add check boxes with dom, you may want to search the forum for adding table rows....That method, you would not loose the information in the text box. Eric
|
 |
 |
|
|
subject: generating textfields when i click a button
|
|
|