Hello everybody,
I made some updates on the script, mainly to include the resources
below:

- default formatResult unformats the result, keeping it text-only;
- option bool selectButton: chooses whether the arrow for options is
displayed or not;
- option integer width: now resizes the input and div to match the
size specified, even if the arrow part is displayed;
- JQuery showDiv(): shows the result's div even if the input is not
clicked (used by the arrow to display the results);
- boolean menuClicked(): returns whether the click in the screen was
in the result's div or not.

The best part, in my opinion, is the second item. With this option set
to true, the autocompleter can simulate a select box, and it seems
very nice. Also, with the "width" option, it is not needed to create a
new class for each instance of the input in the page.

I am trying to make it the more generic possible, in order to reuse it
many times in each page, and keeping it simple. If anybody wants the
code, or have new ideas that would like to share with me, let me know!

Best regards,
Tyron.

Reply via email to