typeahead-addresspicker
Version:
Example of adding google map API to typeahead jquery plugin to display address autocomplete suggestions.
18 lines (16 loc) • 623 B
JavaScript
var fixtures = fixtures || {};
fixtures.html = {
textInput: '<input type="text">',
input: '<input class="tt-input" type="text" autocomplete="false" spellcheck="false">',
hint: '<input class="tt-hint" type="text" autocomplete="false" spellcheck="false" disabled>',
menu: '<span class="tt-dropdown-menu"></span>',
dataset: [
'<div class="tt-dataset-test">',
'<span class="tt-suggestions">',
'<div class="tt-suggestion"><p>one</p></div>',
'<div class="tt-suggestion"><p>two</p></div>',
'<div class="tt-suggestion"><p>three</p></div>',
'</span>',
'</div>'
].join('')
};