if condition in javascript not working
<p>I have this code in JS:</p>

<pre><code>if($('.log input:checked')) 
    {
        alert('login checked');
        alert('do what you want');
    }
    else 
    {
    alert('login not checked');
        alert('you can not do what you want');
}
</code></pre>

<p>But it is not working correctly. IS the IF ELSE condition wrong?</p>
