Retrieve variable from text without using eval()
<p>I'm trying to build a form that calculates ad prices. The problem is, each section has a different base value. So I'm trying to get jQuery to evaluate the variable, but it's only evaluating the text. Eval() works here, because it returns the variable and not the text.</p>

<p><code>var onlineAdCalc =eval($('#onlineAdSection').val()+$('#onlineAdSize').val());</code></p>

<p><code>$('#onlineAdSection')</code> and <code>$('#onlineAdSize')</code> are both select boxes.</p>

<p>For example,</p>

<pre><code>var homebox = 38.4;
$('#onlineAdSection').val() = home;
$('#onlineAdSize').val() = box;
</code></pre>

<p>with eval</p>

<pre><code>onlineAdCalc = 38.4
</code></pre>

<p>without eval</p>

<pre><code>onlineAdCalc = homebox
</code></pre>
