If I just have this js everything fires and works:
$('.hidden-div').hide();
$('#id_bool').change(function() {
   $('.hidden-div').toggle(this.true);
});
but if I add this function directly underneath it everything stops working:
$('.form').on('submit', function(){
   if $('#id_bool'){
     $('.hidden-div').show();
   } else {
     $('.hidden-div').hide();
   }
});
What is going wrong in the second part?
 
    