<div onclick="(el = document.getElementById('qwerty')).checked = !el.checked"> <input type="checkbox" id="qwerty"> </div>