[Seaside] onkeypress Jquery
xekoukou at gmail.com
Fri Aug 20 01:23:07 UTC 2010
there has already been a question how to implement this...
if(window.event) // IE
keynum = e.keyCode;
else if(e.which) // Netscape/Firefox/Opera
keynum = e.which;
keychar = String.fromCharCode(keynum);
numcheck = /\d/;
Type some text (numbers not allowed):
<input type="text" onkeypress="return noNumbers(event)" />
I dont know how to create the ' if something then something' by using only
the previous example was just an example.
I want that when a specific key is pressed (like the escape key) , that an
action is performed . Can someone give me the exact answer using Jquery.
This message and any attachments (the "message") are confidential,
intended solely for the addressee(s), and may contain legally
Any unauthorised use or dissemination is prohibited. E-mails are
susceptible to alteration.
I shall not be liable for the message if altered, changed or
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside