Korvin commented on a Page, Toggle All Checkboxes  -  Mar 02, 2010

for loops my friend.

for(count = 1;box = document.getElementById(cur_id);count++)
    {
        box.checked = setting;
        cur_id = id+count;
    }

also, jquery.

function toggleAll(id) { $("[id^="+id+"]:checkbox").attr('checked', true);}

same sht as yours.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.