jQuery Ajax: Copy - Paste thingy

Posted by tsiger on Stack Overflow See other posts from Stack Overflow or by tsiger
Published on 2010-05-14T19:01:04Z Indexed on 2010/05/14 19:04 UTC
Read the original article Hit count: 257

Filed under:
|
|

Hi everyone,

I have a form where a check an input field for its value and then i do an Ajax call using the typewatch plugin ( a small little thing which detects that the user has stopped typing after a predefined interval ). It works great.

As this field is a "coupon discount" in an order form, the value could be entered by copy pasting the "coupon code" from an email or something. It also works with Ctrl+C - Ctrl+V for Copy and paste but not when a user selects the text with the mouse, clicks copy from the context menu and then paste from this menu.

Is there a way in jQuery to check for this kind of behaviour in jQuery somehow?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about copy