[jQuery] Add click() event to each() loop constructor

[jQuery] Add click() event to each() loop constructor


Sorry, I'm new to Google Groups and was trying to reply to a post but
couldn't figure out how without e-mailing the author directly[1].
I'm trying to add the click() event to the each() loop constructor.
e.g.
$(document).ready(function()
{
    $("a[id*='activate-']").each(function(i){
        $('#toggle1-'+i).slideToggle('slow');
        $('#toggle2-'+i).slideToggle('slow');
    });
});
This works, and toggles all corresponding ids called '#toggle1-'+i and
#toggle2-'+i, but I only want it to activate when the anchor is
clicked. Is this possible?
[1] http://groups.google.com/group/jquery-en/browse_thread/thread/b6d1dea588cab69d/6b7427b0dd9281d7