Hi! Thanks for this great plugin and support.

Well, I want to dropdown on click (before entering any character) and
I used your code, but it doesn't working with remote data. It need to
have character in input field (even if minChars = 0) to send ajax
request. Maybe there is any other way to do that?

On Aug 8, 10:35 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> There is no perfect solution yet. Another use had a similar issue, and
> added code like this to open the select:
> $("...").focus().focus().click()
>
> Theautocompleteopens when the input gets focused and is then clicked
> again. Somewhat crude, but may help to solve your issue.
>
> You're welcome to create a ticket for this 
> issue:http://dev.jquery.com/newticket(requires registration)
>
> Jörn
>
> On Fri, Aug 8, 2008 at 8:08 PM, Greg Snyder <[EMAIL PROTECTED]> wrote:
>
> > Maybe I am missing something, but there doesn't appear to be a way to
> > make theautocompletebox show up as soon as the input box is
> > focused.  I tried to modify the focus event in the code, but the
> > result was that theautocompletebox would not go away and the input
> > box kept focusing itself when another form component was focused.
> > Here is the code I am using:
>
> > $("#medication").autocomplete("/patient/meds/0?box=medication", {
> >                        minChars: 2,
> >                        autoFill: true,
> >                        max: 100
> >                });
>
> >                $("#dosage").autocomplete("/patient/meds/0?box=dosage", {
> >                        minChars: 0,
> >                        autoFill: true,
> >                        extraParams: {
> >                                medication : function() {
> >                                        return $('#medication').val();
> >                                }
> >                        }
> >                });
>
> > The purpose of the form is to allow a user to first select a
> > prescription medication, and then the dosage for that medication.  /
> > patient/meds/ is a php script which queries a database for the
> > possible dosages of the medication.  Currently, the user requires to
> > press a key for theautocompletebox to show up.  Ideally, I'd like
> > theautocompletebox to function as it does now, but if the minChars
> > option is set to 0, the query will execute when the input is focused.
> > Any thoughts as to how I can achieve these results?

Reply via email to