Hi,

I have a problem wit the click and dblclick event:

var myClickFunction =  function()
{
$(this).toggleClass("backcolor2");
}

var myDblClickFunction =  function()
{
alert('DoubleClick');
}

both are bind to the same object. When I do a click on the object, the
myClickFunction function is executed. When I do a double click, first the
myDblClickFunction  is executed, than the myClickFunction function. Why?
Is there a way, that on a double click only the myDblClickFunction  is
executed?

I'm using the stable version of jQuery.

Michael


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to