Monday, September 29, 2008

[jQuery] Re: Autocomplete: prevent the users from entering a value outside the list of values.

Thanks a lot, i will try this.

If my data set has " English" and the user enters "english" is this a
warning in mustMatch is it case sensitive?

Also should the end user press "enter" if the user continues to type "
English" is it captured as an Onblur or Onchange event. Today we have
activated onblur.

We are still trying to close the loop holes from the user end, to add
a onchange to the text field.

You can see it implemented in the open source project

https://www.visataxes.com/software/forms/Form1040NR-EZ.php

Immigration Tabs -> Country selection

Thanks

On Sep 29, 6:54 am, kempshall <jayhar...@gmail.com> wrote:
> In the Options for the Autocomplete, set { mustMatch: true }.
>
> On Sep 28, 10:21 pm, prakash123 <prakash...@gmail.com> wrote:
>
>
>
> > Hello
>
> > We are using this in our production project
>
> >http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
>
> > We currently maintain a list of values.
>
> > We would like to prevent the users from entering a value outside the
> > list of values.
>
> > The plugin has helped us avoid select and option for dropdown.
>
> > This will mimic the behaviour of select/option as a value outside the
> > list cannot be entered.
>
> > Example:
>
> > Cars: Audi, VW, BMW, Tesla, Ferrari
>
> > We dont want the users entering Ford
>
> > Please give some guidance.

No comments: