Is it possible to creat an object literal on the fly? Like this:
var arr = [ \'one\', \'two\', \'three\' ]; var literal = {}; for(var i=0;i
Use this in your loop:
literal[arr[i]] = "";