Topic: How to check all boxes?

Like "Subject" say - my questions is :

It's any chance to check all boxes at once when choose option "Delete multiple posts"?

This is only a part of maybe much important question - how (or when?) we be able to delete couple pages at once ?

-----------------------------------------
Thanks!

2 (edited by Smartys 2005-03-27 12:33)

Re: How to check all boxes?

I suggested it a while ago I think, I'll find the post

Edit: http://punbb.org/forums/viewtopic.php?id=4600
Rickard was evil tongue

Re: How to check all boxes?

Moi? Evil? smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: How to check all boxes?

function CheckAll(chk)
{
for (var i=0;i < document.listmails.elements.length;i++)
    {
        var e = document.listmails.elements[i];
        if (e.type == "checkbox")
        {
            e.checked = chk.checked;
        }
    }
}

Usage :

<INPUT TYPE=checkbox NAME=selectall1 VALUE="Select All" OnClick=CheckAll(this)>
God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily