I am trying to create javascript variable dynamically.
var id = "_wuserId"
I need to create a variable
var _wuserId_editor = new Editor();
I have tried
var eval(id + "_editor") = new Editor();
Above code doesnt work
I am not quite sure how to use associative array, I have tried following but it didnt work.
var editor_id = ["_wuserId_editor"];
var editor_id[0] = new Editor();
Please help