Use javascript comma separated variable to repopulate a forms checkbox values when page loads
<p>I have a jquery variable that is storing a comma separated list of id names.  I need help writing something in jquery that separates that variable and uses those values to populate a forms checkbox values when the page loads.</p>

<p>so my jquery variable is $storedFormValues that is a comma separated list of values "checkbox1, checkbox, etc."</p>

<p>and my form</p>

<pre><code>&lt;form name="formname" id="formid"&gt;
&lt;input type='checkbox' class='catcheck' id='checkbox1' value='checkbox1' name='catselect' /&gt;Checkbox 1
&lt;input type='checkbox' class='catcheck' id='checkbox2' value='checkbox2' name='catselect' /&gt;Checkbox 2
&lt;input type="submit" name="submit" value="Submit" /&gt;
&lt;/form&gt;
</code></pre>

<p>Any help would be greatly appreciated!</p>
