jquery 操作CheckBoxList


var arrListValue = $('#ctl00_ctl00_chklPermission').attr("listvalue").split(',');

$('#ctl00_ctl00_chklPermission').find("input").each(function(i) {

if ($(this).attr("checked")) {

UserPermission += '{"Permission_ID":"' + arrListValue[i] + '","User_ID":"' + $('#ctl00_ctl00_hf_User_Id').val() + '"},'

 

}

})

 

posted @ 2009-09-07 09:50  张宏宇  阅读(437)  评论(0编辑  收藏  举报