Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search starts after typing two characters #173

Open
diegogaitan opened this issue Aug 16, 2012 · 5 comments
Open

Search starts after typing two characters #173

diegogaitan opened this issue Aug 16, 2012 · 5 comments
Labels

Comments

@diegogaitan
Copy link

Is it possible to start the search after typing one character only? No request is sent to the server when I type the first character.

Thanks in advance.

@rvsingh
Copy link

rvsingh commented Mar 1, 2013

https://github.com/crowdint/rails3-jquery-autocomplete/tree/master/lib/assets/javascripts

You can locate the above mentioned java script files of gem in your local and change the value manually.

Just open the files and find "2". You will see code like.

if ( term.length < 2 ) {
return false;
}

Replace "2" with your desired length. Don't forget to restart server.

@mauriciopasquier
Copy link

There's an open PR (#169) with this functionality from 8 months ago. I hope merge someday..

@charlesdg
Copy link

No chance to see this feature in the options attribute ?

@frederico
Copy link

@charlesdg follow this pull request #169

@bigtunacan bigtunacan self-assigned this Feb 18, 2014
@aamir-nazir
Copy link

Please add following attribute on element.
'min-length' => 1
or any value you want it to be. Here search starts after 1 character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants