jQuery の slideToggle 関数は次のとおりです。
$('.class').click(function() {
$(this).parent().next().slideToggle('slow', function() {
// how can I access $('.class') that was clicked on
// $(this) returns the $(this).parent().next() which is the element
// that is currently being toggled/slided
});
});
コールバック関数では、現在の .class 要素 (クリックされている要素) にアクセスする必要があります。どうやってやるの?