[jQuery] Re: Wrapping non empty text node with span

2009-01-16 Thread Beres Botond
I don't think you need .find(li), just $(#target li).each(function(){ Other than that, looks pretty simple already On Jan 16, 10:50 am, Jacky jacky...@gmail.com wrote: Hi all, I'm looking for a way to wrap text node with span. HTML: ul id=target liItem 1/li liItem 5

[jQuery] Re: Wrapping non empty text node with span

2009-01-16 Thread Beres Botond
Actually, you'll need $(#target).find(li).each(function(){ to process each li from target ul. On Jan 16, 12:22 pm, Beres Botond boton...@gmail.com wrote: I don't think you need .find(li), just $(#target li).each(function(){ Other than that, looks pretty simple already On Jan 16, 10:50