jQuery Autocomplete plugin 1.2.3 limit for query

Asked

Viewed 109 times

0

Guys use jQuery Autocomplete plugin 1.2.3 from Jörn Zaefferer.

I wanted to know how to make him perform the query only if I inform more than 3 characters.

Calls the plugin this way:

$("#suggest5").autocomplete('completar.php', {
                width: 600,
                multiple: false,
                matchContains: true
            });
  • "Just use" is an answer?

  • yes I found the solution and edited the question.

  • 1

    But here is a Q&A and not a friendly forum, you have to formulate a response. Even if it was you who asked, we are different from other tour sites: http://answall.com/tour

1 answer

1


it’s to do so:

 if($("#suggest5").lenght>3){   
        $("#suggest5").autocomplete('completar.php', {
                        width: 600,
                        multiple: false,
                        matchContains: true
        });
    }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.