--- /dev/null
+<script type="text/javascript">\r
+\r
+ var autocomplete_data = '["book","movie","music","sports","skating","swim"]';\r
+\r
+ var model = {\r
+ \r
+ renderAt: '#containerDemo',\r
+\r
+ title: 'Autocomplete Demos',\r
+ \r
+ demos: [\r
+\r
+ {\r
+ title: 'Simple autocomplete',\r
+ desc: 'With few lines of code you could build a autocomplete. You can try more options on the fly! ',\r
+ html: '<input id="autocomplete" type="text" /> (Try type <em>m</em> or <em>s</em>)',\r
+ destroy: '$("#autocomplete").autocomplete("destroy");',\r
+ options: [\r
+ { desc: 'Attach a autocomplete', source: '$("#autocomplete").autocomplete({data:'+autocomplete_data+'});' }\r
+ ]\r
+ }\r
+\r
+ ]\r
+ };\r
+\r
+ $(function(){\r
+\r
+ uiRenderDemo(model);\r
+\r
+ });\r
+\r
+</script>
\ No newline at end of file