[jQuery] Re: What's wrong with my coding?

2007-08-31 Thread Joe L
Cool, Thanks Klaus, It works perfectly!

[jQuery] Re: What's wrong with my coding?

2007-08-30 Thread Klaus Hartl
Joe L wrote: Hi, I added the click event to a few a and they work perfectly fine, but when I try to do it with a FOR loop, it doesn't work anymore, does anyone has any idea about it? Thank you. /* works well */ $(a#1-a).click(function(){toggleTab(0);});

[jQuery] Re: What's wrong with my coding?

2007-08-30 Thread Mike Alsup
$('[EMAIL PROTECTED]a-]').each(function(i) { $(this).bind('click', function() { toggleTab(i); }); }); Nice, Klaus!