wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Getting Value from Dynamiclly Created TextBoxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Getting Value from Dynamiclly Created TextBoxes " Watch "Getting Value from Dynamiclly Created TextBoxes " New topic
Author

Getting Value from Dynamiclly Created TextBoxes

Joe Brigs
Ranch Hand

Joined: Jun 06, 2011
Posts: 60

I'm creating Related TextBoxes inside a table Dynamically. The number of textboxes created is generated by a DROPDown Box when the user selects the number of Dates they want to enter. Once they enter them and hit submitt button I call validation routine, but I can't figure out how to get the value they entered? I have tried many things. I can find out the number of rows and cells no problem, but when I try to get value I get invalid data. I'm sure its simple, any ideas. Thanks


For 'try this 1 = ' <input id =sqDate01 value=2011-12-01>
For 'try this 2 = ' <input id =sqDate02 value=2011-12-02>
For 'try this 3 = ' <input id =sqDate01 value=2011-12-01> I'm close but how do I get value?

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Joe Brigs
Ranch Hand

Joined: Jun 06, 2011
Posts: 60

Thanks Eric, that did the trick !!!

Do you or anyone else have a suggestion on the best DOM book I can get. I'm ok with basic Javascrpt but my DOM manipulation skills need an upgrade.
 
wood burning stoves
 
subject: Getting Value from Dynamiclly Created TextBoxes
 
Similar Threads
cant display the table
Scroll and focus to text field to dynamically added row
resultset is not working properly
using OGNL
How to set timer for select the time am to pm on front end in a jsp page like calender for date?