Bootstrap Typeahead updater funktioniert nicht

Ich versuche dieses:

$('input[name=recerv_country]').typeahead({
    remote : {
        url: '?country=%QUERY',
        filter: function(data) {
            var resultList = data.map(function (item) {   
                return item.name;
            });
            return resultList;
        }
    },
    updater : function (item) {
        //item = selected item
        //do your stuff.
        alert(item.name);
        alert('foo');
        alert('bar');
        //dont forget to return the item to reflect them into input
        return item;
    }
});

Passiert nichts, die Warnungen nicht angezeigt. Was mache ich falsch?

InformationsquelleAutor NickNick | 2013-10-12

Schreibe einen Kommentar