How can I replace values in an array of variables with jQuery
<p>I have this code</p>

<pre><code>newRow =  "&lt;tr&gt;&lt;td&gt;[[var1]]&lt;/td&gt;&lt;td&gt;[[var2]]&lt;/td&gt;&lt;td&gt;[[var3]]&lt;/td&gt;&lt;/tr&gt;"
</code></pre>

<p>Now i have this array</p>

<pre><code>data['var1'] ='test1';
data['var2'] ='test2';
data['var3'] ='test3';
</code></pre>

<p>I want to replace the above data in newRow in simplest possible way. How can I do that?</p>
