Ive the following code:
<script type=text/javascript>
$(document).ready(function(){
shortcut.add(Ctrl+Alt+N, function() {
$(#btnSave).click();
});
});
</script>
where btnSave is anchor element with ID btnSave, shortcut is from http://www.openjs.com/scripts/events/keyboard_shortcuts/ . If i change the line $(#btnSave).click();
to document.getElementById(btnSave).click()
- all works fine. The question is why jquery implementation is not working in my case?
PS: made jsfiddle for my case: http://jsfiddle.net/0x49D1/WCmeU/
Here is the guy with similar problem: http://forums.asp.net/t/1591818.aspx