I think in this case it is better to use event delegation, e.g. set up
a single handler on the parent table element and handle the click
here. You can get to the clicked cell via e.target.


--Klaus


On Mar 28, 5:25 pm, Leeoniya <[EMAIL PROTECTED]> wrote:
> i need to bind a click function to several thousand table cells. would making
> an external function be better than specifying an anonymous one
> inline?...i'm afraid that with the inline version it would make as many
> function instances as there are table cells...correct me if i'm wrong.
>
> thanks,
> Leon
> --
> View this message in 
> context:http://www.nabble.com/bind%28%29-and-thousands-of-%3Ctd%3E-elements--...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to