| Author: Parashu(Swathimutyam) 30 Jul 2008 | Member Level: Gold | Rating: Points: 4 |
var chklist=document.getElementById("ChkboxID"); var count=0; for(var i=0; i<savedQuerylist.length; i++) { if(chklist.options(i).selected == true) { count++; } } if(count>3) { alert('your message');
Regards, Parshu(swathimutyam) }
|
| Author: Mexi Renjith Mamman 30 Jul 2008 | Member Level: Gold | Rating: Points: 3 |
You can try this :
int count = 0;
for(int i=0; i < chkLst1.Items.Count; i++) { if (chkLst1.Checked) { count++; } if (count >3) { // Alert message } }
|