Charlie, Thanks! That was exactly what I needed.
-Scott Wolf -----Original Message----- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 9:57 AM To: CF-Talk Subject: RE: JavaScript question document.formName.elements.length should give you the number of form fields i believe. document.formName.elements is an array (so a particular field can be referenced as document.formName.elements['firstName'].value)....and you can use the length property to determine the # of fields. hth, Charlie -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 2:07 AM To: CF-Talk Subject: SOT: JavaScript question I'm working on a project that is going to have several different each pages with a form on each page. A lot of the form interaction and validation is going to be happening client side with JavaScript (not my call, they wouldn't listen). I want to start making a few standard functions that I can drop into each page. What I really need to get started though is a function that can count up the number of inputs in the form. It needs to be something that will run during the <BODY> tag's onLoad event. I have no idea how to get JavaScript to count up the number of form fields. If anyone could help, I would be exceedingly grateful. Thanks! Scott Wolf [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

