Check checkboxlist Items By its Index.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 1080
var selected_index = [1,3,6];
for (var cnt = 0; cnt <= selected_index.length-1; cnt++)
{
$("[id*=chk_lst_employee] input:checkbox").eq(selected_index[cnt]).prop('checked',true);
}

Similarly,we can uncheck items by setting false in prop.

Comments or Responses

Login to post response