I am using MagicSuggest to populate tag list from following JSON data:
[
{
"Id": "money",
"name": "money"
},
{
"Id": "education",
"name": "education"
}
]
while I am going to edit page, need to pre-populate the selected tags:-
like one pre-populated tag: money
Please suggest how I can set magic suggest list with pre selected items
Below code is the one which I have tried so far :
var article_tags = $('#article_tags').magicSuggest({
data: 'http://localhost:1043/Tag/TagData',
sortOrder: 'name',
valueField: 'name',
minChars: 0,
value: ['money'],
maxResults: false,
name: 'article_tags',
allowFreeEntries: false,
selectionPosition: 'right',
//groupBy: 'name',
maxDropHeight: 200
});