Friday 18 May 2018

Cut - copy - paste


<script type='text/javascript' src='http://code.jquery.com/jquery-1.11.3.min.js'></script>
<script type='text/javascript'>
$(document).ready(function(){	
   $('#test').bind("cut copy paste",function(e) {	
       e.preventDefault();	
   });	
});	
</script>
<input type="text" id='test' placeholder="Hello Text"/>

No comments:

Post a Comment