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.
Hi All, I have problem in counting number of rows in a table and giving color to table data in javascript. I'm able to dynamically add rows to html table, but how to count no. of rows in the table after adding rows. Please give a solution to me to add row dynamically and also to count the rows. I'm using insertRow and insertCell methods to add row dynamically in javascript.
waiting for your reply. Thank you Regards
Daniel Ng
Greenhorn
Joined: Jul 09, 2002
Posts: 27
posted
0
inserted.insertRow(string[] data, int index) Use data.length to get the number of rows. As for the color, I am not sure how to do that with insertRow().
Thomas Paul
mister krabs
Ranch Hand
Joined: May 05, 2000
Posts: 13974
posted
0
Moving this to the JavaScript forum. This forum is for discussing Java.