Monday, 21 July 2014

How to disable cut, copy & paste in TextBox using jQuery in asp.net.



Write Below code on ASPX page to perform the operation:- 

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



No comments:

Post a Comment