What's wrong with this code?
<pre><code>$('#PbtnSubmit').click(function() {
    if ($("#PricingEditExceptions input:checkbox:checked").length &gt; 0) {
        var chec = $('#PricingEditExceptions input[type=checkbox]:checked');
        var PMstrIDs = chec.map(function() {
             return $(this).val();
        }).get().join(",");
        alert(PMstrIDs);
        $('#1_exceptiontypes').attr('value', exceptiontypes)
        $('#1_PMstrIDs').attr('value', PMstrIDs);
    } else {
        alert("please select atleast one exception");
        return false;
    }
});

 var checked = $('#PricingEditExceptions input[type=checkbox]:checked'); 
</code></pre>

<p>This code returns correct value in Firefox  but not in IE8. Is there something I need to change?</p>

<p>Why I am not getting all the checked checkboxes in IE8?</p>

<p>please can anybody help me out?</p>
