I have no idea which autocomplete plugin you're using but does the following work for you?
$(function() { $("#category").focus(function(){$(this).autocomplete("do_search.php",{max:100,minChars:0,delay:10}) }); }); On Wed, Oct 22, 2008 at 4:19 PM, blasto333 <[EMAIL PROTECTED]> wrote: > > Is there a way to force a field to do a search on focus of the input? > (I basically want the user to be suggested a default set of items > before typing anything. > > I tried this > $("#category").autocomplete("do_search.php",{max:100,minChars:0,delay: > 10}); > > -- Isaak Malik Web Developer