Trying to understand the following syntax in my autocomplete plugin
// Listen for click event on suggestions list:
container.on('click.autocomplete', suggestionSelector, function () {
that.select($(this).data('index'));
});
"click.autocomplete" syntax I am confused about, there is no class autocomplete on this page but it still works. what does the ".autocomplete" here refer to ?