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. ;)
Thanks, problem solved. ;)
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(
3 matches
Mail list logo