Ooops, I think you left out 1 reference to options:
document.forms[0].elements[3].options[document.forms[0].elements[3].options.selectedIndex].value=='0'
Printable View
Ooops, I think you left out 1 reference to options:
document.forms[0].elements[3].options[document.forms[0].elements[3].options.selectedIndex].value=='0'
With that I get the no properties error again.Quote:
Originally posted here by JPNYC
Ooops, I think you left out 1 reference to options:
document.forms[0].elements[3].options[document.forms[0].elements[3].options.selectedIndex].value=='0'
Ok, but leaving that aside, let's find out why the function doesn't work. COmment out the selectedIndex lines for now, let's get it to work one step at a time. In fact, you should really start with a single element validation and get that to work. When in doubt, simplify.
Hey Hey,
It's working.... I forgot to account for the hidden fields at the starm of the form... Now I just need to make it loop for each file uploaded but that should be simple enough
Thanks for your help everyone.
Peace,
HT
AHA! Okie doke. Time to go out and pillage.
That also explains why the error on the dropdown box with the proper syntax. Because it wasn't referencing the dropdown element. Anyway, glad it works.
Thanks for all your help.... it was greatly appreciated.
My pleasure. I don't get to do quite as much coding on the job as I'd like, so this is how I get my fill :)