').html(planSelector).text());var interval=option.attr('data-interval');var intervalCount=parseInt(option.attr("data-interval-count"));var amount=option.attr('data-amount');var amountInSmallestCommonCurrency=option.attr('data-amount-in-smallest-common-currency');var setupFee=option.attr('data-setup-fee');var setupFeeInSmallestCommonCurrency=option.attr('data-setup-fee-in-smallest-common-currency');var currency=option.attr("data-currency");var currencySymbol=option.attr("data-currency-symbol");var zeroDecimalSupport=option.attr("data-zero-decimal-support")==="true";var planDetailsPattern=wpfs_L10n.plan_details_with_singular_interval;var planDetailsParams=[];planDetailsParams.push(currencySymbol);planDetailsParams.push(amount);if(intervalCount>1){planDetailsPattern=wpfs_L10n.plan_details_with_plural_interval;planDetailsParams.push(intervalCount);planDetailsParams.push(interval);}else{planDetailsParams.push(interval);}if(coupon!=false){planDetailsPattern=intervalCount>1?wpfs_L10n.plan_details_with_plural_interval_with_coupon:wpfs_L10n.plan_details_with_singular_interval_with_coupon;var result=applyCoupon(currency,amountInSmallestCommonCurrency,coupon);var total=formatCurrencyAmount(result.total,zeroDecimalSupport);planDetailsParams.push(currencySymbol);planDetailsParams.push(total);jQuery(this).parents('form:first').append(jQuery('').val(total));}if(setupFee>0){planDetailsPattern=intervalCount>1?(coupon!=false?wpfs_L10n.plan_details_with_plural_interval_with_coupon_with_setupfee:wpfs_L10n.plan_details_with_plural_interval_with_setupfee):(coupon!=false?wpfs_L10n.plan_details_with_singular_interval_with_coupon_with_setupfee:wpfs_L10n.plan_details_with_singular_interval_with_setupfee);planDetailsParams.push(currencySymbol);planDetailsParams.push(setupFee);}var planDetailsMessage=vsprintf(planDetailsPattern,planDetailsParams);var planDetails=jQuery('#fullstripe-plan-details__'+formId);jQuery("#display_price").html(amount);jQuery("#cost_per_month").html("£"+amount);jQuery("#initial_rent").html("£"+setupFee);jQuery(".no_of_student").html(no_students);})if(jQuery("#fullstripe-plan__students_monthly_plan")[0]){jQuery("#fullstripe-plan__students_monthly_plan").change();}if(jQuery('#fullstripe-custom-amount__students_three_year_plan')[0]){jQuery('#fullstripe-custom-amount__students_three_year_plan').change();}if(jQuery('#fullstripe-custom-amount__students_one_year_plan')[0]){jQuery('#fullstripe-custom-amount__students_one_year_plan').change();}})