inserted.atwho not returning $li
When I use the inserted.atwho event like this, how can I get the chosen item from the popup? According to your documentation, the $li var should contain the chosen item, but I'm not sure how to use it.
$inputor.on("matched.atwho", function(event, flag, query) { console.log(event, "matched " + flag + " and the result is " + query); });
inserted.atwho
Triggered after user choose a popup item in any way. It would receive these arguments:
atwho event - jQueryEvent : Just a jQuery Event. $li - jQuery Object : List Item which have been chosen browser event - jQueryEvent : real browser event
@danielolivasjr
@myabc this is my issue
@danielolivasjr You can use inserted.atwho event like this:
$inputor.on("inserted.atwho", function(event, $li, browser_event) {
console.log(event, "inserted " + $li + " and the result is " + browser_event);
});
@nersoh how you can get itemData from $li?
@albertShake you can do that by getting itemData from $li: $li.data('item-data')
Hope it helps you!