Block a div content from cut copy paste

<script>
// BLOCK COPY CUT PASTE
$(document).ready(function() {
 $('#shr14-p').bind("cut copy paste", function(e) {
 e.preventDefault();
 }); 
});
</script>

<style>
// USE CSS FOR NOT HIGHLIGHT
.shr14-unselectable{
 -webkit-touch-callout: none;
 -webkit-user-select: none;
 -khtml-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;
 }
</style>

HTML SECTION::

<div id="shr14-p" class="shr14-unselectable">
IT IS A DEMO TEXT HERE. DEMO TEXT DEMO TEXT.
</div>
Please follow and like us:
0