I should have read through the whole thread before posting. :-/
My apologies to Joan, too. I guess the index is being passed through
implicitly?
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 21, 2007, at 4:21 AM, Steve Jones wrote:
My apologies, Joan, it does work. I had just changed the name of
the class. Schoolboy error.
Beautiful!
Thanks
SJ
On 21 Jan 2007, at 4:59, Joan Piedra wrote:
I think this should work. Not tested tho.
$("a.open_button").click(function() {
$(this).next('div.section').slideToggle(1200,function() {
complete(index);
});
return false;
});
Cheers
On 1/20/07, Steve Jones < [EMAIL PROTECTED]> wrote:
$("a.open_button").each(function(index) {
$(this).click(function() {
$('div.section:eq(' + index + ')').slideToggle(1200,function
() {
complete(index);
});
return false;
});
});
--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
<new-logo-small.gif>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/