Fix for radio button disabling bug in Billing view
This commit is contained in:
parent
c551097d57
commit
dea68878f4
|
@ -16,9 +16,10 @@ var customerInEU = false;
|
|||
function validatePlan()
|
||||
{
|
||||
if ($("#newproductid-25").is(":checked")) {
|
||||
$("#newproductbillingcycle-monthly").prop("checked", "true");
|
||||
//It's import that we switch the checked item first (because you can't disable a checked radio button in Chrome)
|
||||
$("#newproductbillingcycle-annually").prop("disabled", "true");
|
||||
$("label[for='newproductbillingcycle-annually']").addClass("disabled");
|
||||
$("#newproductbillingcycle-monthly").prop("checked", "true");
|
||||
} else {
|
||||
$("#newproductbillingcycle-annually").removeProp("disabled");
|
||||
$("label[for='newproductbillingcycle-annually']").removeClass("disabled");
|
||||
|
|
Loading…
Reference in New Issue