CodePen

HTML

            
              <input type="checkbox">
<div>Hide this</div>
            
          
!
via HTML Inspector

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              $('input:checkbox').on('change', function(){
  $('div').toggle();
});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................