I'm trying to create an object similar to the one in this thread:
I am extracting a string from an HTML element that looks like this: {option1: 'var', option2: false, option3: 'stuff'}
I tried var options = myString, but then I cannot reference options['option1']. How do I do that?
I tried var options = new Object(); but that still didn't help. Thanks.
I am extracting a string from an HTML element that looks like this: {option1: 'var', option2: false, option3: 'stuff'}
I tried var options = myString, but then I cannot reference options['option1']. How do I do that?
I tried var options = new Object(); but that still didn't help. Thanks.