function checkAll()
{
    for ( var i=0; i<document.forms[0].elements.length; i++ )
    {
        if ( document.forms[0].elements[i].type == "checkbox" )
        {
            document.forms[0].elements[i].checked=true ;
        }
    }
    return false;
}

aa> Hi
aa> Probably slightly off topic
aa> but i ahve a jsp using struts that has a table with rows.each row has a check 
box.I have a checkbox at the top of the table, clicking which, i want all below 
checkboxes to be checked..has anyone
aa> implemented this code..
aa> Thanks much in advance,
aa> sam

                
aa> ---------------------------------
aa> Do you Yahoo!?
aa> Yahoo! Tax Center - File online by April 15th



-- 
Best regards,
 Andrey                            mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to