How to disable cut,copy and paste in TextBox using jQuery?



How to disable cut,copy and paste in TextBox using jQuery?..

Answer / Dhirendra Singh

You can disable cut, copy, and paste functionality for a textbox by using the .prop() method in jQuery. Here is an example:nn```javascriptn$( "#yourTextBoxId" ).prop( "readonly", true );n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Tell me is jquery a w3c standard? : jquery mobile

1 Answers  


Differentiate the concepts of .js and .min.js?

1 Answers  


How to prevent Right Click option using jquery?

1 Answers  


How to check variable is empty or not in jquery?

1 Answers  


What is difference between $(this) and ‘this’ in jquery?

1 Answers  


What does the jQuery migrate function do?

1 Answers  


How to disable jQuery animation?

2 Answers  


Define url paremeter of jquery ajax method?

1 Answers  


What is the use jQuery.data method?

1 Answers  


In what scenarios jQuery can be used?

1 Answers  


How to set attributes of an element using jquery?

1 Answers  


Is jquery is json library file or a javascript?

1 Answers  


Categories