日期:2014-05-16 浏览次数:20390 次
$(function () { var max = 3, cbs = $('#gridview :checkbox');//gridview改为你的GridView的ID cbs.click(function () { if (cbs.filter(':checked').size() >= max) cbs.filter(':not(:checked)').attr('disabled', true); else cbs.filter(':disabled').attr('disabled', false); }); });