I currently have a Javascript function that uses a string to reference an object name and acces its properties. I\'m currently using eval() to get the the desired effect whi
eval("myTestObject[\"item1\"") should do the trick, as myTestObject.item1 is shorthand for myTestObject["item1"]
How do I reference an object dynamically?