[jQuery] Re: jQuery and dynamic node generation - HELP!

2009-01-21 Thread Eric Garside
If you're on jQuery1.3 you could also just do: $('#sub-navigation a').live('click', function(){ ... }); Which would add an onclick to all the a tags inside of sub-nav that currently exist, or would be added in the future. On Jan 21, 9:03 am, Frederic wrote: > Thanks, problem solved. ;)

[jQuery] Re: jQuery and dynamic node generation - HELP!

2009-01-21 Thread Frederic
Thanks, problem solved. ;)

[jQuery] Re: jQuery and dynamic node generation - HELP!

2009-01-21 Thread Ricardo Tomasi
The 'name' property for anchors has been deprecated in XHTML, use IDs instead (or no identifier at all): thing other thing $('#sub-navigation > ul > li').each(function(i){ var subs = ''+i+' - Xis bacon'; subs += ''+i+' - Xis galinha'; $('') .append(subs).appendTo(