I have a tagit element on my page:
$("#myTags").tagit({
fieldName: "tags",
availableTags: availableTags,
showAutocompleteOnFocus: true,
allowSpaces: true
});
When I add a tag using this code:
$("#myTags").tagit("createTag", tag);
the autocomplete box pops up and just hides when I click on the input and then click outside!
I've tried to simulate this by code, but nothing happens:
$(".ui-widget-content.ui-autocomplete-input").focus().blur();