Jquery function should be executed when the checkbox is checked
<p>My JavaScript code is like this and for this function should run only when the check box is checked on and this should not run when the check box is checked out.</p>

<pre><code>&lt;script type="text/javascript"&gt;

    $(document).ready(function zoom() {
    $('.ThumbaGallery').Thumba({
            effectThumba: 'easeOutBack',
            effectDuration: 450,
            keyNav: true,
            mouseNav: true,
            coeffZoom: 2.5,
            speedOpenLightBox: 100,
            legendPadding: 5,
            legendOpacity: 0.8
        });

    });
</code></pre>

<p></p>
