$(document).ready(function () { console.log("Debugging started"); }); $("#customer").mouseleave(function () { debugger; var searchlist = new Bloodhound({ datumTokenizer: function (searchlist) { return Bloodhound.tokenizers.whitespace("customerName"); }, queryTokenizer: Bloodhound.tokenizers.whitespace, remote: { url: '/api/Customers?query=%QUERY', wildcard: '%QUERY', filter: function (response) { return response.customerName; } } }); //Initialize the searchlist searchlist.initialize(); $('#customer').typeahead({ hint: true, highlight: true, minLength: 3 }, { name: 'searchlist', displayKey: function (suggestions) { return suggestions.keyword }, source: searchlist.ttAdapter(), limit: 10 }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)