On 08/08/06, Michael Fuerst <[EMAIL PROTECTED]> wrote:
> 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
>

This may work:

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

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to