How to prevent Right Click option using jquery?
Answer / Uzair Ahmad Ansari
To prevent the right-click context menu with jQuery, you can use the following code:
```javascript
$(document).bind('contextmenu', function(e) {
e.preventDefault();
});
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Which sign is used as a shortcut for jQuery?
Explain the use of the .pushstack() method.
What is the difference between onload() and document.ready() function used in jquery?
What is the basic requirement to start with the jquery?
explain bind() vs live() vs delegate() methods in jquery
What is a use of jquery filter?
Whether C# code behind can be called from jQuery?
Can you call C# code-behind method using jQuery? If yes,then how?
Difference between detach and remove? : jQuery Mobile
What to do to select element having a particular class (".selected")? : jquery mobile
What is the struts2 jquery plugin and its advantages.
Why are not some scripts and styles loading? : jquery mobile