Skip to content

Instantly share code, notes, and snippets.

@cpaul007
Created May 9, 2020 10:00
Show Gist options
  • Save cpaul007/68c4f0a251dc12a49894fb839f16e4ba to your computer and use it in GitHub Desktop.
Save cpaul007/68c4f0a251dc12a49894fb839f16e4ba to your computer and use it in GitHub Desktop.
Toggle next button of 1st step form
$('input[name=have_business]').on('change', function(){
checkedVal = $('input[name=have_business]:checked').val();
if( checkedVal == 'no' || checkedVal == 'No' ) {
$('.first-step').find('div.step-nav').hide();
} else {
$('.first-step').find('div.step-nav').show();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment