JQUERY string --> variable
<p>In the html, I have a select with some options with values "a", "b", "c"</p>

<p>I retrieve whatever the user chooses using</p>

<pre><code>function getOp(){ 
    return $("select[name = 'choices'] option:selected").val();
}
</code></pre>

<p>Let's say they chose <code>a</code></p>

<p>I have a <code>var x = getOp();</code> but now <code>x</code> is a string <code>"a"</code>. However, I want to be able to use <code>x</code> to call another (already set) variable called <code>a</code>.</p>

<p>When I do things with <code>x</code> now, <code>x</code> functions as a string as opposed to another variable. How can I link my <code>x</code> to my <code>a</code> variable?</p>
