I'm using a Typeahead and Bloodhound feature that provides some suggestions. When a user selects a suggestion I want to assign the input with that value.
However, this doesn't seem to work in its current iteration.
<input id="fruit" name="fruit" value=""/>
$('#fruit').bind('typeahead:select', function(ev, suggestion){
var name = suggestion.label;
$("#fruit").typeahead('val', name);
return false;
});