I would like to unregister some event with a right click.
For example, when I register an event clicking some cells, it's color will change. like below:
$(function() {
$("#our_calendar td").click(function(){
$(this).css('background', 'yellow');
});
});
I would like to unregister with right click. I found some answers:
Is right click a Javascript event?
I wonder if it is possible to unregister (initialize it's color) by right clicking ,and is it possible not to display window with right click.
If someone has experienced such issues, please let me know.
thanks