{footer_script}{literal} $('.switch-button.type span').click(function() { $(this).siblings('span').removeClass('active'); $(this).addClass('active'); if ($(this).hasClass('common')) { $(this).nextAll('input').val('false'); } else { $(this).nextAll('input').val('true'); } }); $('.switch-button.other span').click(function() { if ($(this).hasClass('active')) { $(this).removeClass('active'); $(this).next('input').val('false'); } else { $(this).addClass('active'); $(this).next('input').val('true'); } }); {/literal}{/footer_script}