I like the each() function, but I had a situation where I wanted to group them. In particular, I wanted to group all radio and checkboxes together so that I could validate things like, at least one is selected, or at most 5 are selected, for example. So I thought an new method similar to the each function that would put them in groups based on the value of an attribute might be useful.
I have attached a script that works for the purposes I have, I'm fairly new to jQuery, so there may already be something like this out there (it may be considered useless, I don't know)... anyway, I tried to follow the code style I saw in the jQuery core when creating the function, but I haven't tested it thoroughly, so there may still be issues with it. Let me know if you think it's worth-while (and if you find any bugs), or point me in the direction of what I should be doing instead.