I am going to use the jquery autocomplete plugin and i will to set the max items to display. Searching on google I found that there is the "max" option to set at the number of items that I want to show, but it do not work.
I use jquery-ui-1.8.21 version.
$("#test").autocomplete({
source:myarray,
max:5
});
Thanks
Where did you read that? I can’t find
maxin autocomplete’s documentation under “options” tab at the bottom.Although, there’s an example how to set the maximum height for better user experience. But if you really want first n elements from that array just use slice() method from pure JavaScript.