Dis/Enabling Submit button(s) by how many checked boxes

Dis/Enabling Submit button(s) by how many checked boxes

Hi,

Much like gMail, I have a list of files with checkboxes and a number of submit buttons with options.

What I'm trying to do is enable or disable these submit buttons depending on how many checkboxes are checked.

ie. if only one checkbox in the group is checked, enable the "Get Link" button but if none or more than one is checked, disable the "Get Link" button.

Similarly, if none or only one checkbox is checked, disable the "Get List" button but if more than one is checked, enable the "Get List" button.

I'm afraid I have no idea where to start!

There are a couple more options but I'm sure I could figure it out after that..

Any help would be greatly appreciated,

Cheers,

Rob.