Вот функция 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 (тот, по которому щелкают). Как я могу это сделать?