on 2007-2-6 21:42,Karl Swedberg said the following:
I just inserted the code into a test page, and it worked for me. A couple things you can try:

1. Make sure you include jquery.js before your keydown script.
2. wrap your script in a $(document).ready(). So, the relevant snippet of the <head> might look like this (until you put the keydown script in a separate file, of course):

<script src="path/to/jquery.js" type="text/javascript"></script>

<script type="text/javascript" >

$(document).ready(function() {
$("#tbPageInfo").keydown(
  function(e){
    var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
    alert(key);
  }
);
});
</script>

Hope that helps.


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
Thank you for you particular help.
It is good now.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to