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?
<select id="clickMe">
<option value="a">a</a>
<option value="b">b</a>
<option value="c">c</a>
</select>
<span id="attachHere"></span>
<script>
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());
});
});
</script>