$('#PbtnSubmit').click(function() {
if ($("#PricingEditExceptions input:checkbox:checked").length > 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');
This code returns correct value in Firefox but not in IE8. Is there something I need to change?
Why I am not getting all the checked checkboxes in IE8?
please can anybody help me out?