The simplest way would be to use inline JSON, as in (PHP example): $("#myinput").autocomplete( <? print functionReturningJSONArray() ? > );
Or you can build an array from html elements, with something like: arr = $("#someList").children("li").map(function() { return this.innerHTML; }); (And then $("#myinput").autocomplete(arr); etc.) On Jul 9, 10:25 pm, shapper <[EMAIL PROTECTED]> wrote: > Hello, > > I am using JQuery AutoComplete. > Can I use some words that are in my HTML code? > I am putting the words there using inline server side code. > > Or should I use JSon? > > Thanks, > Miguel