Hi Richard,

you can bind one single event trigger to the document (or a parent
element) and use the target property of the event.
see:
http://docs.jquery.com/Events/jQuery.Event

e.g.
$().click( function(ev) {
  $(ev.target).fadeOut().fadeIn();
});

by(e)
Stephan

2009/2/10 Richard <richar...@gmail.com>:
>
> hello,
>
> I'm wondering how to access the elements under a mouse click.
> At first I tried iterating through all the elements and checking each
> one, but as you can guess it was too slow.
> Then I tried binding mouse click events to all the elements but it got
> messy.
>
> Is there a way to get a list of elements that the mouse has clicked on
> even if they don't have click events defined?
>
> Richard
>

Reply via email to