form validating
I have been trying to validate form that consists of 5 columns and 6 rows. I have 2 Drop down listboxes and one textfield.
Here is the my table form:
NUM TEXT LISTBOX1 TEXTFIELD LISTBOX2
1 A (12 options) (any text) (8 options)
2 B (12 options) (any text) (8 options)
3 C (12 options) (any text) (8 options)
4 D (12 options) (any text) (8 options)
5 E (12 options) (any text) (8 options)
6 F (12 options) (any text) (8 options)
User can allow to choose either only one record or multiple records.
For example if user choose first record, I would like to validate/check LISTBOX1, TEXTFIELD, LISTBOX2 fields for the row NUM1. ( I want user to choose/fill all these three fields.) Another example, If the user choose row NUM2 and row NUM3, I would like to validate/check LISTBOX1, TEXTFIELD, LISTBOX2 fields for the both row NUM2 AND row NUM3. ( In other words I do not want user to leave blank fields for NUM2 and NUM3 rows.)
I hope, I did not get confused you with my explanation.
I tried to use JScript to validate it, but I failed. If you can help me I really appreciate.
Thanks all...
|