How to disable copy content function using jQuery?

To disable cut, copy and paste of a content in jQuery, use the jQuery bind() function.


You can try to run the following code to disable copy paste of content using jQuery −

Live Demo

<!DOCTYPE html>
<script src=""></script>
  $('#mytext').bind("cut copy paste",function(e) {

<input type = "text" id="mytext">Copy, cut and paste function doesn't work here.


Updated on: 14-Feb-2020

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started