更新时间:2023-02-11 20:39:05
试试这个
try this
function beoreSave()
{
var selectedIds = [];
(' [id * =chkCandidate]')。each( function (i,item){
if (item.checked){
var val =
('[id*="chkCandidate"]').each(function (i,item) { if (item.checked) { var val =
(item).parent() .parent()。find(' [id * =hdnCandidateID]')。val() ;
selectedIds.push(val);
}
});
alert(selectedIds.join(' ,'));
}
(item).parent().parent().find('[id*="hdnCandidateID"]').val(); selectedIds.push(val); } }); alert(selectedIds.join(',')); }