autocomplete max length

autocomplete max length

How can I make the autocomplete widget limit how many characters the results have based on the the maxlength="" option on the input