var Checkout = function () {
return {
init: function () {
$('#checkout').on('change', '#checkout-content input[name="account"]', function() {
var title = '';
if ($(this).attr('value') == 'register') {
title = 'Step 2: Account & Billing Details';
} else {
title = 'Step 2: Billing Details';
}
$('#payment-address .accordion-toggle').html(title);
});
}
};
}();
|