Monday, 16 July 2012

How to prevent cut, copy and paste into text field useing jquery?

Hellos,

Please write down following javascript:

<script type="text/javascript">
  $(document).ready(function(){
    $('#textField1').bind("cut copy paste",function(e) {
      e.preventDefault();
    });
   });
</script>

Cheers!

No comments:

Post a Comment