title: Jquery - Building variable name from multiple <option> selection
body: <p>Semi-hypothetical question, let's say I have multiple strings, one of which may need to be displayed based on what dropdown choices are made. What I'me thinking of is something along the following:</p>
  
  <pre><code>var 11 = "fast cars"
  var 12 = "slow cars"
  var 21 = "fast bikes"
  var 22 = "slow bikes"
  </code></pre>
  
  <p>The string that gets displayed is then selected by the combination of two boxes:</p>
  
  <pre><code>&lt;select id="type"&gt;
  &lt;option value="1"&gt;automobiles&lt;/option&gt;
  &lt;option value="2"&gt;motorbikes&lt;/option&gt;
  &lt;/select&gt;
  &lt;select id="type2"&gt;
  &lt;option value="1"&gt;get there fast&lt;/option&gt;
  &lt;option value="2"&gt;be comfortable&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>In my main body I have code that constantly refers to a variable "transtype". What I'd like to be able to do is link the variable "transtype" to one of the variable string above, i.e.:</p>
  
  <pre><code>var one = $( "#type" ).val();
  var two = $( "#type2" ).val();
  var fullvarname = [one + two];
  var transtype = fullvarname;
  </code></pre>
  
  <p>What I'm getting, at the moment, is the variable "transtype" echoing out "11" or "21", etc. and not the string that the variable should link to. Obviously this is because the code sees the concatenated values as string. The question is, how do I get it to recognize it as a name of a variable and not a string itself?</p>
  
  <p>As a caveat, I'd like to point out that there are actually around half a dozen boxes with several options each. To try and have one dropdown with all possible combinations would be hideous. Also, the required string (e.g. "fast cars" is actually a whole bunch more that includes { and [). I'm also keen on using jquery so that I can update content on the fly without having to reload the entire page a la PHP.</p>
  
  <p>I'm new to Javascript/jquery and this is one of very few areas that I've not been able to work out from other posts here and elsewhere. If the above is not possible, or if it can be better achieved via a different method, please feel free to say...</p>