problem with checked all checkbox?
<p>When someone clicks on first <code>input:checkbox</code>, I want my code to check all checkboxes, but my code doesn't work correctly: <p></p>

<p><strong>EXAMPLE:</strong> <a href="http://jsfiddle.net/cQYVE/" rel="nofollow">http://jsfiddle.net/cQYVE/</a></p>

<pre><code>$('.table_show tr input:first').live('click',function(){
        var isChecked = $(this).prop('checked');
        $(".table_show tr input[name=checked[]]").each(function(){
            if (!$(this).prop('checked') == isChecked) {
                $(this).parent().click();
            }
        });
    });
</code></pre>

<p>What is the cause of the problem?</p>
