Try using event delegation, add event to table and check event target
( for td )
Im not sure it onclick event can't be add to td, must check it myself.

Arthur

On 3 Wrz, 16:25, tan <[email protected]> wrote:
> Hi
>
> Is it impossible to add an onclick attribute to a TD element?
>
> I have tried to add @onclick to both table/tbody/tr/td and table/tbody/
> tr/td/a but it is never added.
>
> I see on the example on Jan Odvarko's page that the attribute is added
> to the TABLE element and the click handler listens for the
> event.target
>
> http://www.softwareishard.com/blog/domplate/domplate-examples-part-ii/
>
> Is it just me or is it not possible to add the attribute to the table
> child elements?
>
> Thanks in advance,
>
> Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to