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......................
Loading
SreekanthPosted Sep 25, 2009, 12:06 PM
Roei BarPosted Sep 25, 2009, 9:25 AM
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.");
}
Rajeswari nathanPosted Sep 25, 2009, 8:26 AM
If the check box is not selected you can change the style Visibility = 'none' and display='none'