Thursday, April 23, 2015

ASP.NET CheckBoxList Operations with jQuery - Check Items By Index

//Check Items by index
   var selIndex = [0, 2, 3];
   for (var i = 0; i < selIndex.length; i++) {
       $("[id*=CheckBoxList1] input:checkbox").eq(selIndex[i]).prop('checked', true);
   }

No comments:

Post a Comment