You need to implement on page search tags when you set the type habarovskogo or Gorlovskogo: starting to dial after 2-3 symbol throws out a list of suitable options. It can run the cursor with the keyboard or clicking. The tags are inserted through the separator (a comma).
On the page decided to use mootools. He has already written 3 lines in js (this is my first code in js in my life).
Appropriate option when the list of tags is loaded when the page loads (when it is small) and when the set takes a json request to the server. In most of mootools ready-made solution no. What will advise? Don't want to reinvent the wheel. Yes and long it. At least, as this functionality is properly called?