Need some work done? Post a Project Today
I have a fairly straight forward tabbed form that needs to be validated before submission.
The input elements of all tabs are radio button groups.
The form needs to be validated for the presence of checked radio buttons.
The form is invalid if one or more tabs contain unchecked and checked radio button groups.
The form is valid if all or no radio button groups within a tab are checked.
For instance the form would be valid if one single tab with all radio button groups is filled out and all other tabs are left blank.
In case the form is invalid on submit an alert(); should appear telling the user which tabs are containing the error.
If multiple errors occur the errors should be listed in the alert(); box, no multiple alert boxes please.
NOTE: There is already some script added that validates the form if no radios are selected. Please built from there (please don't use the name attribute to validate! The validation needs to be re-used for similar forms) .
The winner will be provided with all the necessary html/css/js files.
Please let me know whether something not clear before you bid.