crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Disable or stop cut copy paste on texbox using jQuery
Question Posted on 12 Apr 2012Home >> 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



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




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






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap