Demo with AlloyUI Tern plugin
See
https://github.com/angelozerr/tern-aui1.5.x
for more infos.
Y //<-Ctrl+Space shows YUI UI().use( 'aui-autocomplete', function(A) { new A.AutoComplete( { contentBox: '#myAutoComplete', dataSource: ['America', 'Europe', 'Asia'] } ).render(); } );