here is my code :
$('#CheckBoxList1').change(function () {
var CHK = document.getElementById("<%=CheckBoxList1.ClientID%>");
var checkbox = CHK.getElementsByTagName("input");
if ($.browser.msie) {
for (var i = 1; i < checkbox.length; i++) {
if (checkbox[i].checked) {
markers[i - 1].setIcon('http://maps.google.com/mapfiles/ms/icons/green-dot.png');
}
else {
markers[i - 1].setIcon('http://maps.google.com/mapfiles/ms/icons/red-dot.png');
}
}
}
});
});
in for loop I'm finding checked checkboxes from checkboxlist1.I'm setting marker colors which names are checked in chekboxlist.İt's working succesfull with for loop. But I will making this process when I checked a checkbox.I don't will using a for loop to finding all checked checkboxes.So I will do, when I checked a checkbox on chekboxlist I will getting thet checkbox's Index(sequence number) number.When I get that index number I musn't using a for loop and I can working on markers with that index number. İ.E I have a checkbox list i.e it haves 5 checkboxes tahats texes are a,b,c,d,e . For example: when I cheked 'e' checkbox I will getting that checkbox index number which is 5,when I cheked 'c' checkbox I will getting that checkbox index number which is 3