Check checkboxes by value
<p>I have been using this code to get a comma separated list of all checkboxes checked.</p>

<pre><code>$(".hidFeedsIds").val($.map($(':checkbox[name=channel\[\]]:checked'), function (n, i) {
    return n.value;
}).join(','));
</code></pre>

<p>Now I need to do the opposite, I have the list but need to check all the checkboxes that the values are on it.</p>

<p>Can anyone tell me how could this be done?</p>
