<input type="checkbox" onclick="document.getElementById('capa').style.display=(this.checked) ? 'block' : 'none'"> <div id="capa"></div>