Check if checkbox is checked
<p>Why does the following code not work?</p>

<p><strong>Example:</strong> <a href="http://jsfiddle.net/ZZe5X/18/" rel="nofollow">http://jsfiddle.net/ZZe5X/18/</a></p>

<pre><code>$('.submit').submit(function () {
    e.preventDefault()
    if ($('input[type="checkbox"]').is(':checked')) {
        alert('ok')
    } else {
        alert('no')
    }
})
</code></pre>
