Adding text from JS var on change event using jquery
<p>Im trying to accomplish something "like" this. I want to add the text stored in some JS variables into the doc based on the value selected in a combo. i.e. how do I reference JS variables based on the selected value of a combo?</p>

<pre><code>&lt;select id="clickMe"&gt;
    &lt;option value="a"&gt;a&lt;/a&gt;
    &lt;option value="b"&gt;b&lt;/a&gt;
    &lt;option value="c"&gt;c&lt;/a&gt;
&lt;/select&gt;

&lt;span id="attachHere"&gt;&lt;/span&gt;   

&lt;script&gt;

var a = "something about a";
var b = "something about b";
var c = "something about c";

$(document).ready(function() {
    $("#clickMe").change(function() {
        $("#attachHere").text($("#clickMe").val());
    });
});


&lt;/script&gt;
</code></pre>
