Getting Index of selected items.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 916
$("#btn").click(function () 
{
var $ctrls = $("[id*=CheckBoxList1] input:checkbox");

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

Comments or Responses

Login to post response