且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用jquery从转发器获取隐藏字段值?

更新时间: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(',')); }