How I remove the typeahead autocomplete and leave only the suggestions below

Asked

Viewed 28 times

0

Input

Html

    $('.typeahead_oque').typeahead({minLength: 0}, {
        source: categoriestextFunction,
        name: 'categories'
    });

1 answer

2


Just a matter of consulting the official documentation:

Options

hintIf false, the typeahead will not show a hint. Defaults to true.

I mean, just do:

$('.typeahead_oque').typeahead(
  {
    minLength: 0, 
    hint: false
  }, {
    source: categoriestextFunction,
    name: 'categories'
  }
);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.