$('#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');
此代码在Firefox中返回正确的值,但不在IE8中。有什么我需要改变?这段代码有什么问题?
为什么我没有得到IE8中的所有选中的复选框?
请问有人能帮我吗?
woohhh ...你的代码现在真的不一样了! :/ – Zuul 2010-06-14 20:38:29
如果您不从问题中删除代码,这会更容易。 \ *叹息\ * – Eric 2010-06-14 21:20:41