Inside of a function I'm getting a value from an input box, like this.
var $value = $('#inputid').val().toLowerCase();
So I want to have the returned variable $value
be used to call another variable.
Above that code is a variable declaration.
var $somethingA = "1";
var $somethingB = "2";
If the user types in "somethingA" I want to get an alert that says "1". Is this possible?
Sorry if it is a silly question. Thanks!