In order to satisfy a JQuery autocomplete I have, right now, used this initialization code:
var KdNameTags = [{label:"...", idx:0},{label:"...", idx:1},{...}]
This works well, and it initializes an array of objects, each one containing a property "label" and "idx", like demanded by autocomplete. See details in the JQuery docs if required. Now, I want the definition delivered via a string variable, like:
var strTags = '{label:"...", idx:0},{label:"...", idx:1},{...}';
but I can't figure out how I need to proceed, and I have Javascript creating the array of objects from that string.
var KdNameTags = [strTags]
it does not do the trick, of course...