Autocomplete
<form method="get" action="http://www.mercadolibre.com.ar/jm/search" class="ch-form">
<input type="text" name="as_word" class="autocomplete" />
<input type="submit" name="autocompleteSubmit" class="ch-btn">
</form>
var autocomplete = new ch.Autocomplete(document.querySelector('.autocomplete'))
.on('type', function (userInput) {
tiny.jsonp('http://suggestgz.mlapps.com/sites/MLA/autosuggest?q=' + userInput + '&v=1', {
name: 'autocompleteSuggestion',
success: parseResults,
error: function(err) {
autocomplete.suggest([]);
}
});
});