give an id to the table and in the javascript function
alert ("no.of rows: " + document.getElementById(tableid).getElementsByTagName("TR")[0].length); this may work Thanks and Regards shasi -----Original Message----- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 7:44 PM To: Struts Mailing list Subject: urgent hi all! can anyone please tell me how i can dynamically count the number of rows(records) that a display:table populates. i want to do some javascript coding using that value Abhimanyu Koul FinEng Solutions (P) Ltd. Dani Compound, 158, Vidyanagari Marg, Kalina, Santacruz (East), Mumbai - 400 098 Mobile : +91 9819510090 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]