|
-
Jul 16th, 2001, 04:44 AM
#1
Thread Starter
Addicted Member
Forms Collection??
How can I run through all the inputs in my form to validate them for the same condition?
Can I use the form.elements
Something like:
for i = 0 to form.elemets.count
if form.elements(i).value = "" then
window.alert "Enter data!"
end if
next
It gives me an error stating that object doesnt support this property. What is wrong or what other way is there to do it?
I Have alot of textboxes on my form and dont want to check each on inividualy!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|