I solved my problem. I needed valueKey
. valueKey
in my example is "Name", which is what I want to populate the drop down list:
$(document).ready(function () {
$('input.typeahead-devs').typeahead({
name: 'movies',
remote: {
url: 'http://localhost:61182/api/SixFilm/GetMovies?term=%QUERY',
dataType: 'json',
}
valueKey: "Name",
});
});