I'm using the jQuery hotkeys plugin, written by John Resig (Mr jQuery). It uses bind, however, and bind is now replaced by on as noted in the official jQuery API.
The standard code is:
$(document).bind('keyup', 'alt+a', function(evt){...});
I tried changing bind to on, but it didn't work. Is there a workaround, or does it not matter?
I'm also wondering whether attaching the handler to the document is always going to be the best way.