How to run through each checked checkbox with a classname using JavaScript without jQuery
<p>Is there an immediate equivalent in javascript for the below jquery code?</p>

<pre><code>$('.checkbox').each(function() {
    if ($(this).is(':checked')) {
        //logic here
    }
});
</code></pre>

<p>I'm trying to run through all the checkboxes on a page with <code>class = 'checkbox'</code> - the client doesn't want to use jQuery, so I need an alternative for the above.</p>

<p>I'm hoping I can avoid writing a long function from scratch to do this and simply use something built-in to JavaScript, but it's looking like it's not possible.</p>
