jQuery: The Write Less, Do More JavaScript Library

[autocomplete] clearing the input field if the user does not select any of the options

View: New views
2 Messages — Rating Filter:   Alert me  

[autocomplete] clearing the input field if the user does not select any of the options

by ssmusoke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

How can I clear the input field if the user does not select any of the
options.

I have tried mustMatch but in IE it seems that the text typed must
match the options. Maybe I am not getting it right

My options are
$("#auto_dropoff_state").autocomplete(dropoff_statecity, {
        width: 250,
        matchContains: true,
        autoFill: false
});

Thanks in advance

Re: [autocomplete] clearing the input field if the user does not select any of the options

by Jörn Zaefferer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


mustMatch is exactly the option you should use in this case. Can you
provide a testpage?

Jörn

On Tue, May 13, 2008 at 3:17 PM, ssmusoke <ssmusoke@...> wrote:

>
>  Hello,
>
>  How can I clear the input field if the user does not select any of the
>  options.
>
>  I have tried mustMatch but in IE it seems that the text typed must
>  match the options. Maybe I am not getting it right
>
>  My options are
>  $("#auto_dropoff_state").autocomplete(dropoff_statecity, {
>         width: 250,
>         matchContains: true,
>         autoFill: false
>  });
>
>  Thanks in advance
>