Try this:

$("...").autocomplete("url", {
  minChars: 0
}).focus(function() {
  $(this).click();
});

Jörn

On Thu, Oct 23, 2008 at 9:38 PM, blasto333 <[EMAIL PROTECTED]> wrote:
>
> Still no luck, the plugin I am using is:
>
> http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
>
> On Oct 23, 6:21 am, "Isaak Malik" <[EMAIL PROTECTED]> wrote:
>> Oups, I think it should be:
>>
>> $(function()
>> {
>>
>> $("#category").focus(function(){this.autocomplete("do_search.php",{max:100,minChars:0,delay:10})
>>
>>
>>
>> });
>> });
>> On Thu, Oct 23, 2008 at 12:16 AM, blasto333 <[EMAIL PROTECTED]> wrote:
>>
>> > That didn't work either. If I double click in the field, the expected
>> > behavior occurs.
>>
>> > On Oct 22, 10:41 am, "Isaak Malik" <[EMAIL PROTECTED]> wrote:
>> > > 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:1
>> > 00,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
>>
>> --
>> Isaak Malik
>> Web Developer

Reply via email to