View Single Post
Old 04-25-2009, 07:09 AM   #12 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

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);
}
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote