SO - 19738330

by Arun P Johny

HTML

<li class="selector"> <a>
    <input type="checkbox" value="test" /> test
    </a>

</li>

JavaScript

$(document).on('click', '.selector', function (e) {
    if (!$(e.target).is('input')) {
        $(this).find('input').prop('checked', function () {
            return !this.checked;
        });
    }
});