How to determine the number of results in the autocomplete using jQuery

This code determines the number of results of suggestions for input
 source: function(request, response) {
        var results = $.ui.autocomplete.filter(availableTags, request.term);        
        response(results.slice(0, 6));
    }

6 it's its the max-number of results in suggestion list
How to determine the number of results in the autocomplete using jQuery

© Manajmnt code

Share to :

Comments