Blog Details

Disable Cut,Copy and Paste


                                
                                    Disable Cut,Copy and Paste Demo
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js">// <![CDATA[

// ]]></script>

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

<span> Enter Something </span>
<input id="txtnm" type="text" value="Wama Software" />

code :

Disable Cut,Copy and Paste Demo

&lt;script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js"&gt;

// &lt;![CDATA[

// ]]&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;

// &lt;![CDATA[
$(document).ready(function(){ $('#txtnm').live("cut copy paste",function(e) { e.preventDefault(); }); });
// ]]&gt;&lt;/script&gt;

&lt;span&gt; Enter Something &lt;/span&gt;
&lt;input id="txtnm" type="text" value="Wama Software" /&gt;
                                    


Categories

Javascript

Latest posts

13.05.14
Implementing CRUD Operations ΒΆ

<ul> <li>Now comes the fun part. We would like t

13.05.14
View

<ol> <li><a href="http://www.yiiframework.com/do

13.05.14
Creating Model

<ol> <li><a href="http://www.yiiframework.com/do

Get Free Quote