JQuery select a variable by passing a text string of its name
<p>I'd like to use a JQuery selector to return a variable by passing a text string of the variable name:</p>

<p>ex.</p>

<pre><code>var test = "xxx";
</code></pre>

<p>I'm thinking I could do something like this, but it won't work:</p>

<pre><code>  alert($("#test"));
</code></pre>

<p>Edit:  People are getting confused.  Think of it as a reflective way to get the contents of var test.  Preferrably with a JQuery selector, but I'll take any way one can come up with it..</p>
