How to assign a value to a dynamic javacript variable using eval?
<p>I got the dynamic variable name doing</p>

<pre><code>varname = "data"+newid+"['"+name+"']";
</code></pre>

<p>I would like to assign the dynamic variable a value.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>
