Skip to main content

Bug Tracker

Side navigation

Ticket #3827: test.js
File test.js, 0.2 KB (added by skorpan, January 12, 2009 09:51AM UTC)
$(document).ready(function () {

    $('#butt').click(function () {
        $('#cb').click();
    });

    $('#cb').click(function () {
        console.log('State: ' + (this.checked ? 'ON' : 'OFF'));
    });

});

Download in other formats:

Original Format