On Tue, August 8, 2006 17:28, Sam Collett said:
>> 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
>>
>
> This may work:
>
> var myDblClickFunction = function(e)
> {
> e.stopPropagation();
> alert('DoubleClick');
> }
>
Thanks for your help, but this doesn't change anything, still both
functions are executed... any other ideas?
Michael
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/