[jQuery] Re: keycode javascript conversion to jquery

2007-06-11 Thread JimD
little mistake on my jquery attempt this $('buttonsmp').click(); should be $('#buttonsmp').click(); (the id of the button to be clicked) Jquery implementation $(document).ready(function() { $(#searchtxt).keydown( function(e){ var key = e.charCode || e.keyCode || 0;

[jQuery] Re: keycode javascript conversion to jquery

2007-06-11 Thread Andy Matthews
jQuery actually has built in key event handlers: http://jquery.com/api/ Click the K link at the top -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JimD Sent: Monday, June 11, 2007 11:48 AM To: jQuery (English) Subject: [jQuery] keycode