title: jquery associative array made up of variables
body: <p>I have the following code:</p>
  
  <pre><code>var paramTemp = ret.split('^');
      $.each(paramTemp, function(key, elem) {
        var splitTemp = elem.split('*');
        params = {
      splitTemp[0]: splitTemp[1]
        };
      });
  </code></pre>
  
  <p>I get complaints when I try to set the key to splitTemp[0]. How do I set a key to a variables value?</p>
  
  <p>Thanks.</p>