i get the same id
i get the same id
I've 3 div. each one has a different id, when i try to right-click on one of this div and then on another I get always the same id in the console log.
Why?
$("#container").children("div").mousedown(function(event) {
switch (event.which) {
case 3:
// RIGHT CLICK
console.log(this.id);
break;
}
});