Cool!!!
So simple!!!
I'm going to give it a try now.
Thanks.
Main Topics
Browse All TopicsHi Experts:
I have a table where the first row is written in html. See: "Row 1 HTML" in the code section below.
When I add a new row to the table, I use javascript and DOM elements. See "Javascript to add rows 2...n". in code section below.
In the image below, row 1 is html and rows 2-5 are buried in the DOM (no html code).
How do I traverse the table, rows 2 to n, to retrieve the value in the input fields: BU, Dept, GL Acct, Project, Task, Amount so I can put them in php variables and pass the values to the server for validation and other processing?
The fields are named as follows: bu1, bu2,...,bu5. There can bu up to 100 rows. The other fields are similarly named.
Thanks much.
Cheers!!!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: mplungjanPosted on 2008-12-07 at 00:56:04ID: 23115136
Since you give them unique ID's no need to travers
u'+i).valu e
Save the number of entries and do
for (var i=0;i<nofEntries;i++) {
var currentBu = document.getElementById('b
}