Iterating over variable with jQuery not working
<p>I set this variable at the top of my page <code>setVars = {"n":"2","m":"1","degree":"3","p":"2"}</code></p>

<p>I want to iterate over each of the elements in setVars but jquery's each() function isn't working.</p>

<p>Here's what I have -</p>

<pre><code>$(setVars).each(function(key, value) {
  elementId = '#' + key+ '-wrapper';
}
</code></pre>

<p>But <code>key</code> is set to 0 here on the first iteration and <code>value</code> is set to the full setVars object here for some reason. It doesn't make it to a second iteration, it breaks when I step through it and try to go to the second iteration.</p>
