Thank You, Juha and Diego! Your suggestions work very well for me. I wasn't aware of the nice and useful information that I can get out if the event (.target). Now, it seems much faster, and I will test it on different OSes/Browsers.
Best regards, Alessandro On Apr 24, 2:09 pm, "Juha Suni" <[EMAIL PROTECTED]> wrote: > Bind the click element to the body, and let event delegation / bubbling do > its job. This way you have only one event listener. The function it runs can > then check the clicked element against a jQuery filter with .is() and run > stuff if necessary. On Apr 24, 4:02 pm, "Diego A." <[EMAIL PROTECTED]> wrote: > I think this is possible (never done it myself). > 1. Bind a single click event to the entire document. > 2. use event.target (sourceElement) to access the element that > triggered the event. > 3. Check if its one of your # links > 4. do your magic. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery (English)" group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~----------~----~----~----~------~----~------~--~---