Net-informations.com

Disable Copy or Paste action for text box

jQuery preventDefault()

The event.preventDefault() method stops the default action of an element from happening. You can use this method toprevent a TextBox control from Cut (Ctrl+X) , Copy (Ctrl+C) and Paste (Ctrl+V) .

run this source code Try it Yourself

Type something and try to copy it

Full Source

How to Prevent Cut Copy Paste on all textboxes?

You can use the following method to prevent all textboxes in a form using jQuery.

run this source code Try it Yourself

Type something and try to copy it

Full Source










net-informations.com (C) 2019    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.
SiteMap  | Terms  | About