how to show and hide image button on checkbox
<pre><code>   $('#btnSelectAll').click(function() {
            $('.inputchbox').attr('checked', true);
            $('fieldset').find('img').hide(); // datepicker hide

        });
   //Cancel will deselect all checkboxes and hide submit and Cancel Buttons
        $('#btnCancel').click(function() {
            $('.inputchbox').attr('checked', false);
             $('fieldset').find('img').show(); //datepicker show
        });
</code></pre>

<p>This is my selectAll and cancelall click events..its working good.. </p>

<p>other then this On individual selection on checkbox </p>

<pre><code> $(".inputchbox").change(function() {
        if ($('.inputchbox').is(':checked')) {
            $(this).closest("fieldset").find('img').hide(); // Datepicker hide
        }
        else {
            $(this).closest("fieldset").find('img').show(); // datepicker show

        }
    });
&lt;/script&gt;
</code></pre>

<p>on selctAll and cancelall i can show and hide my all datepicker image in my fieldset</p>

<p>on individual selction of checkbox is also working good.</p>

<p>my problem is.. </p>

<p>when I selectAll i can hide all my datepicker image after doing is.. 
if do Individually on my each checkbox box to show my Image its not working and not even going in to else condition on checkbox selection?
 is that anything doing wrong
thanks</p>
