I have a couple of check boxes that I'd like to use their "name" attribute as the value I reference within my array.
Let's say I have an array like so:
var test = {
"one" : 1,
"two" : 2,
}
var someBtn = "one";
How can I say the following?
test.someBtn; // Which would translate to test.one
Obviously, test.someBtn does not work. Is this even possible?