try this
function beoreSave()
{
var selectedIds = [];
$('[id*="chkCandidate"]').each(function (i,item) {
if (item.checked) {
var val = $(item).parent().parent().find('[id*="hdnCandidateID"]').val();
selectedIds.push(val);
}
});
alert(selectedIds.join(','));
}