This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 59

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: 15357
    
    6
Joe Brigs
Ranch Hand

Joined: Jun 06, 2011
Posts: 59

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting Value from Dynamiclly Created TextBoxes
 
Similar Threads
How to set timer for select the time am to pm on front end in a jsp page like calender for date?
Scroll and focus to text field to dynamically added row
using OGNL
resultset is not working properly
cant display the table