I want to disable right click on the page in general but on each image has a custom jquery dialog. Now the img id is passed to the event so while the menu is the same it will give different results per image.
so I want to bind my generic context menu for non images for all except img class="image"...
so how do I express $(!.image) ???
EDIT I looked up the not function. I am using it like this: However I still get general help even on photos.
<script>
$(document).ready(function() {
$('*').not('.public-photo').bind("contextmenu", function (event) {
$("div.custom-menu").hide();
event.preventDefault();
$("<div class='custom-menu'>General Help</div>")
.appendTo("body")
.css({top: event.pageY + "px", left: event.pageX + "px"});
});
$('*').not(".public-photo").bind("click", function (event) {
$("div.custom-menu").hide();
});
});