Accessing the original object inside each
<p>I want to check or uncheck all the checkboxs the following code works for me </p>

<pre><code> $( '#chkboxall' ).live( 'change', function() {

                                objs=$(document).find('#chkbox');
                objs.each(function(){
                                $(this).attr( 'checked', $(this).is( ':checked' ) ? '' : 'checked' );
            });
                 });
</code></pre>

<p>But instead of using  <code>$(this).is( ':checked' ) ? '' : 'checked'</code>  i want to get the status of original checkbox that i have checked ie status of $('#chkboxall' ). How can i do that inside each?</p>

<p>Krishnik</p>
