ibjdt
Programmer
- Nov 25, 2002
- 63
i have a form with 5 document attachment fields (upload1, upload2...upload5).
onSubmit i would like to compare the value of all 5 fields and alert the user if they have selected the same file 2+ times (as defined by the form field contents being identical in multiple fields).
a min of 1 upload is required, so there could be as many as 4 blank attachment fields. the js comparison would have to disregard blank elements - which would show as identical and give an error.
thanks.
onSubmit i would like to compare the value of all 5 fields and alert the user if they have selected the same file 2+ times (as defined by the form field contents being identical in multiple fields).
a min of 1 upload is required, so there could be as many as 4 blank attachment fields. the js comparison would have to disregard blank elements - which would show as identical and give an error.
thanks.