Hi everyone,
I have a form which has two radio payment options. Now for each radio option there are form fields under it for a customer to complete. I want to use JS to validate the form to require customers to choose an option and enter value in the form fields.
The way I want it is if customer choose option 'A' he will be required to enter values in the option A form fields, and the form fields in option B will not be required. In the same way if he chooses option 'B' the form fields in option B will require validation, and the form fields in option A will not be rquired.

Any help on this. Thanks.