Trying to get comfortable with jQuery, and I came across some sample code that I was having trouble understanding. This refers to the binding method and how they use it. Here
$('textControl').bind(($.browser.opera ? 'keypress', 'keydown') + '.autocomplete', function(event) { code...});
I understand the choice of a keystroke or keydown, but I don't understand why they attach .autocomplete to the name of an even handler?
if someone can shed some light that would be great
thanks
source
share