it is possible to bind Live(‘hover’) and bind(‘contextmenu’) on the same .class?
This code dont work
$('.too').bind("contextmenu", function(e) {
e.preventDefault();
$('#ttt').append('click ' + this.id + '<br />');
});
$('.too').live('hover', function(event) {
$('#ttt').append('click ' + this.id + '<br />');
}
});
here is a working example
http://jsfiddle.net/CD5tX/15/
Thanks in Advance
Peter
You have a syntax error (an extra
}character), it seems to work when that is fixed.see http://jsfiddle.net/CD5tX/17/