On Apr 1, 10:03 am, Ricardo <ricardob...@gmail.com> wrote:
> Or access the id property directly:
>
> $("#row33").click( function(e) {
>     if( e.target.id == "innerX") {

That is certainly more efficient and less problematic than using attr
(), but not a very good strategy.

I think you mean to reply to the OP, not me.


>        ; // do inner link things
>     } else {
>        ; // do outer click things
>    }
>
> });
>
> You can also stop propagation to isolate the inner click:

Which is what I said and is likely the better strategy here as it
removes the need to hard-code the ID of the link in the outer listener
and removes any coupling between the two listeners.

Please post in response the post you are actually replying to (i.e.
the OP).


--
Rob

Reply via email to