I've apologize if this is a trivial task, and I've also been googling and searching high and low for some solution I can get my head around but so far no dice. So anyways....
I have this:
var myList = "key1,value1,key2,value2"
And I want to populate a struct with this string so I can reference it like this:
alert(myList.key1) // displays value1
Thoughts? There's probably some way to do this with JQuery's .each()
perhaps? I'm seriously lost either way! Maybe just because it's really late and I've been stumbling through familiarizing myself with JS and JQuery again after a long hiatus. Any help is appreciated!