0 Members and 1 Guest are viewing this topic.

AuthorTopic: Disable Cut, Copy and Paste function for textbox using jQuery  (Read 1515 times)

Offline aegkaluk

  • Administrator
  • Hero Member
  • *****
  • Posts: 1103
  • Total Like : 0
    • Email
« on: 13, 05, 2013, 11:02:41 »
Code: [Select]
$(document).ready(function(){
  $('#txtInput').live("cut copy paste",function(e) {
      e.preventDefault();
  });
});
!
Code: [Select]
$(document).ready(function(){
  $('#txtInput').bind("cut copy paste",function(e) {
      e.preventDefault();
  });
});

Ref: http://jquerybyexample.blogspot.com/2010/12/disable-cut-copy-and-paste-function-for.html