javascript - preventing copy paste using jquery -


Need to stop copy paste in text box using jquery How to implement it?

  & lt; Table & gt; & Lt; TR & gt; & Lt; H: Input-label value = "genuine" & gt; & Lt; / H: InputLabel & gt; & Lt; TD & gt; & Lt; H: InputTest ID = "Genuine" style class = "Input-Tech" value = "# Bean Caesar" & gt; & Lt; / H: InputText & gt; & Lt; TD & gt; & Lt; / TR & gt; & Lt; Table & gt;    

Go to:

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

Note: Opera does not support cut, copy and paste events before version 12.10 .

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -