Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


Disable or stop cut copy paste on texbox using jQuery
Question Posted on 12 Apr 2012

Home >> WEB >> JQuery >> Disable or stop cut copy paste on texbox using jQuery




Below is code which stop user to cut copy and paste data in textbox using jquery.Becasue it will be better if we do not allow users to copy paste the data entered in Email and Confirm Email field in order to make the user to type themselves.


< script src="_scripts/jquery-1.4.1.min.js" type="text/javascript" >< /script>
< script type="text/javascript">
$(function() {
$("#< % =txtname.ClientID %>,#< % =txtaddress.ClientID%>").bind("cut copy paste", function(event) {
event.preventDefault();
});
});
< /script>
< /head>
< body>
< form id="form1" runat="server">
< div>
< b>EnterName < /b>< asp:TextBox ID="txtname" runat="server">< /asp:TextBox>< br />
< b>Address < /b>< asp:TextBox ID="txtaddress" runat="server">< /asp:TextBox>
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Difference between body.onload and document.ready in jQuery
Different method which provides effects in JQuery
Three types of selector in JQuery
Example of JQuery focus event on textbox
What is significance of jQuery.NoConflict






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |