title: How to assign a value to a dynamic variable using eval?
body: <p>I got the dynamic variable name doing</p>
  
  <pre><code>varname = "data" + newid + "['" + name + "']";
  </code></pre>
  
  <p>I would like to assign a value to the dynamic variable. I tried this</p>
  
  <pre><code>eval(varname) = value; 
  </code></pre>
  
  <p>but it doesn't work. What do I need to do in order to assign a value to the dynamic variable?</p>