04-25-2009, 07:09 AM
|
#12 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
|
Alot more errors now, I think you will be better off using a framework to do the basics across browsers: document.write(countMe); -- that just prints the code thats in the function "countMe".
Your counter function seems wrong, as you name all of them 'checkbox', so something alon the lines of:
javascript Code:
function checkbox_count() { var retval = 0;
for(var x in document.getElementsByName('checkbox')) { if(x.checked) { ++retval; } }
return(retval); }
__________________
|
|
|