I using http://nicolasbize.com/magicsuggest/ for my site Tags function
in the edit page. I want show the existing tags.
But I can't set it.
in the php, I had foreach all tags to page, but How to insert to magicsuggest for existing tags
anyone can tell me how can I do?
now js
$(function() {
$('#ms').magicSuggest({
placeholder: 'Tag Here',
hideTrigger: true,
data: 'get_tags.php',
valueField: 'name',
displayField: 'name',
maxEntryLength: 8,
maxSelection: 5,
maxDropHeight: 145,
width:100,
});
});
I test these tutorial. But not work.