[jQuery] Re: Get first child within an element

2009-04-24 Thread RobG
On Apr 24, 9:43 pm, dgb wrote: > Hi, > > I've got a reference to a TableCell and I'd like to use jQuery to get > the first instance of an tag within that TableCell, but can't > get the syntax right, I understand how it would work if I were to > reference the TableCell by and ID or class, but n

[jQuery] Re: Get first child within an element

2009-04-24 Thread Karl Swedberg
this should do the trick: $(tdRef).find('img:first'); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 24, 2009, at 7:43 AM, dgb wrote: Hi, I've got a reference to a TableCell and I'd like to use jQuery to get the first instance of an tag within th