Looping through an array of input boxes

    Date: 12/15/06 (Javascript Community)    Keywords: java

    I have a date validation function which I'd like to extend for checking multiple date fields on one page (instead of copying and pasting the same function renamed for each seperate date field).. 

    The problem I have is looping through an array of date field names.  I need to use the array value to get the input box value and then validate.   Here's a dumbed down version the form and javascript below:





















    The error is that 'datefields is null or not a value'.    Any idea why or how to over come it? 

    Source: http://community.livejournal.com/javascript/120052.html

« Can regexes be legible? || DHTML Libraries/SDKs »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home