I've been trying to add separate click and double-click events to a span tag such as:
$( document ).ready(function(){
$("span").dblclick(function(){alert("b");});
$("span").click(function(){alert("a");});
});
After much (much!) headbanging, I found the solution here. To be honest, it seems a bit surprising that jquery doesn't do this automatically. Can someone provide an example as to why a person wouldn't want them to be bound separately?