Advertisement
brooklyndesignstudio

Disable Right-click Based on CSS Class

Nov 13th, 2020
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Right-click Disable by Class -->
  2. <script>
  3. jQuery( document ).ready(function($) {
  4.  $('.divi-loop').bind('contextmenu', function(e) {
  5.  e.preventDefault();
  6.  });
  7. });
  8. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement