Thursday, April 23, 2015

ASP.NET CheckBoxList Operations with jQuery - Get Index of selected items

 var $ctrls = $("[id*=CheckBoxList1] input:checkbox");
       $("[id*=CheckBoxList1] input:checked").each(function () {
          alert($ctrls.index($(this)));
       }); 

No comments:

Post a Comment