Skip to content

Search starts after typing two characters #173

Open
@diegogaitan

Description

@diegogaitan

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.

Activity

rvsingh

rvsingh commented on Mar 1, 2013

@rvsingh

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

mauriciopasquier commented on Mar 15, 2013

@mauriciopasquier

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

charlesdg

charlesdg commented on Feb 13, 2014

@charlesdg

No chance to see this feature in the options attribute ?

frederico

frederico commented on Feb 18, 2014

@frederico

@charlesdg follow this pull request #169

self-assigned this
on Feb 18, 2014
aamir-nazir

aamir-nazir commented on Oct 4, 2016

@aamir-nazir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Search starts after typing two characters · Issue #173 · crowdint/rails3-jquery-autocomplete