I have a form that contains 3 different payment options:
1 - Direct Deposit
2 - Credit Card
3 - Cash at Office
What I want to do is remove the mandatory status (validation) from the form fields for Credit Cards if Credit Card is NOT selected so that the form can process without requesting this information.
Any ideas? I have a JSfiddle with what I have setup at present: http://jsfiddle.net/barmar/Kvg8M/2/
JS Code:
$(document).ready(function () {
$(".paymentmethod").click(function () {
$(".paymentinfo").hide();
switch ($(this).val()) {
case "Direct Deposit":
$("#pay0").show("slow");
break;
case "Credit Card Authorisation":
$("#pay1").show("slow");
break;
case "Cash at FAA Office (In Person)":
$("#pay2").show("slow");
break;
}
});
});
I am using Adobe Business Catalyst as well if that helps or hinders??