Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#pesquisa").typeahead({
- source: function (query) {
- return $.get("/Estabelecimento/GetDados", { q: query });
- },
- minLength: 3
- });
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <div class="input-group">
- <input type="text" id="pesquisa" name="pesquisa" class="form-control typeahead" autocomplete="off" placeholder="Pesquisar" />
- <div class="input-group-btn"><button class="btn btn-primary">Pesquisar</button></div>
- </div>
- </div>
- </div>
- </div>
- ["Americanas", "Apple", "C & A", "Carrefour", "Microsfot", "Riachuelo", "Saraiva", "Sony"]
Add Comment
Please, Sign In to add comment