All pastes #927974 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-04 18:09 UTC
rendered paste body
var el = $$('input');
var tokens = [['Afghanistan', 'Af'], ['Åland Islands', 'Ax'], ['Albania', 'Al'], ['Algeria', 'Dz'], ['American Samoa', 'As'], ['Andorra', 'Ad'], ['Angola', 'Ao'], ['Anguilla', 'Ai'], ['Antarctica', 'Aq'], ['Antigua And Barbuda', 'Ag'], ['Argentina', 'Ar'], ['Armenia', 'Am'], ['Aruba', 'Aw'], ['Australia', 'Au'], ['Austria', 'At']]

console.log(el[0]);
new Autocompleter.Local(el[0], tokens, {
	'selectMode': 'type-ahead',
	'forceSelect': true,
	'overflow': true
});