diff --git a/examples/template.md b/examples/template.md index 7e34e93..368ee88 100644 --- a/examples/template.md +++ b/examples/template.md @@ -82,5 +82,9 @@ seajs.use(['autocomplete', '$'], function(AutoComplete, $) { dataSource: ['abc', 'abd', 'abe', 'acd'], width: 150 }).render(); + + ac.input.on('focus', function() { + ac.show(); + }); }); -```` \ No newline at end of file +````