HI....
i am using ASP.NET with C#....in my project i am using 36 checkboxes...
<input id="Checkbox1" type="checkbox" name="t" value="01" />01td>
.
.
.
<input id="Checkbox36" type="checkbox" name="t" value="36" />36td>
i need to display only selected checkbox values and count the number of selected checkboxes.........
Plz help me......................
Client side checkboxes using ASP.NET with C#
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajeswari nathan97 reputationPosted Sep 25, 2009, 4:26 AM EDT
If the check box is not selected you can change the style Visibility = 'none' and display='none'
Roei BarRank #1,271 · 1.4K reputationPosted Sep 25, 2009, 5:25 AM EDT
The JavaScript Source!! http://javascript.internet.com
Created by: Alan Gruskoff | http://www.performantsystems.com/ */
function anyCheck(form) {
var total = 0;
var max = form.ckbox.length;
for (var idx = 0; idx < max; idx++) {
if (eval("document.playlist.ckbox[" + idx + "].checked") == true) {
total += 1;
}
}
alert("You selected " + total + " boxes.");
}
Sreekanth199 reputationPosted Sep 25, 2009, 8:06 AM EDT