Misam Misam - 1 month ago 14
Javascript Question

How to disable Paste (Ctrl+V) with jQuery?

How can I disable Paste (Ctrl+V) option using jQuery in one of my input text fields?

Answer

This now works for IE FF Chrome properly..I have not tested for other browsers though

$(document).ready(function(){
      $('#txtInput').bind("cut copy paste",function(e) {
          e.preventDefault();
      });
    });