jQuery for each
<p>I have a jQuery variable like this:</p>

<pre><code>var variable = $j(this).val();
</code></pre>

<p>Where $j(this) is the "numeric" value of a select option.</p>

<p>What I want to do is loop through the variable value i.e do something once,twice etc, based on the value of the variable.  A bit like this:</p>

<pre><code>$j.each(variable, function() {
   do something
});
</code></pre>

<p>But it does not do it, which bit is wrong?</p>

<p>Thanks in advance</p>
