Hey ppl!
I have a slight problem and just cant seem to solve the problem I am having with form validation to check a radio button has been chosen.
Basically I have 4 questions with 2 radio buttons to each question, one is 'Yes' and the other is 'No' (default is No).
Now on the first 2 questions it doesnt matter what they choose, but on the last 2 they must choose 'yes' in order for the form to submit.
If they havent answered 'Yes' on either of the last 2 Radiobuttons then I want a messagebox prompt to say so.
I have acquired numerous javascript examples for this, but they all use a array count of the radio buttons, but as you can appreciate thats useless as there will always be 4 buttons checked.
Any ideas or websites to check out etc etc would be great.
Thanks in advance!
- F8i
I have a slight problem and just cant seem to solve the problem I am having with form validation to check a radio button has been chosen.
Basically I have 4 questions with 2 radio buttons to each question, one is 'Yes' and the other is 'No' (default is No).
Now on the first 2 questions it doesnt matter what they choose, but on the last 2 they must choose 'yes' in order for the form to submit.
If they havent answered 'Yes' on either of the last 2 Radiobuttons then I want a messagebox prompt to say so.
I have acquired numerous javascript examples for this, but they all use a array count of the radio buttons, but as you can appreciate thats useless as there will always be 4 buttons checked.
Any ideas or websites to check out etc etc would be great.
Thanks in advance!
- F8i