Currently I have this html:
<div id="forMouseEvents"
onmouseover=""
onclick=""
oncontextmenu=""
ondblclick=""
onmousemove=""
onmousedown=""
onmouseup=""
onmouseleave=""
>
</div>
I will add later the functions I would like to call on the relative event. Is it better to do something like this? Why? Is there any difference?
$( "#forMouseEvents" ).click(function() {
// code
});
$( "#forMouseEvents" ).whatever(function() {
// code
});
...