Tuesday, October 30, 2012

How to disable copy/cut/paste for html textbox by jQuery

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