$("#tbPageInfo").keydown(
function(e){
var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
alert(key);
}
);In FF2 it works but there is a error: jQuery is not defined http://localhost/qis/script/jquery.js Line 1 jQuery is not defined eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a... --------------------- I find the plugin:http://rikrikrik.com/jquery/shortkeys but I am not sure how to use? $("#tbPageInfo").shortkeys({ 'N': function () { $('#try_me').append('N<br />'); }.... }); _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
