Split comma-separated input box values into array in jquery, and loop through it
<p>I have a hidden input box from which I'm retrieving the comma-separated text value (e.g. <code>'apple,banana,jam'</code>) using:</p>

<pre><code>var searchTerms = $("#searchKeywords").val();
</code></pre>

<p>I want to split the values up into an array, and then loop through the array.</p>
