Use "OR" with the attribute selector

Use "OR" with the attribute selector

 jQuery('body').find('input[type=checkbox]:checked').each (function(){    });

I want to apply each to all those elements whose checkboxes and radio buttons are checked.

I have used similar code on many pages. I want to add an "OR" condition in the above code.
want to apply each function to 'input[type=radio]:checked' and 'input[type=checkbox]:checked'
symultaneously. Is it possible to use both the attribute selectors in "OR" condition.

what is the best way to do it.?