Jquery prevent dragging of text value

Posted by ipr101 on Stack Overflow See other posts from Stack Overflow or by ipr101
Published on 2010-05-06T12:11:32Z Indexed on 2010/05/06 12:58 UTC
Read the original article Hit count: 124

Filed under:
|
|

I have a html textbox on which I've bound a function via jQuery to the paste event to prevent users pasting a value into the textbox. This functionality works well.

However it is possible to select some text from another textbox on the page and drag it into the textbox in which pastes are prevented. Is there a jQuery event that I can bind to that will prevent users dragging text into the texbox?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about drag