does anyone know of a simple script to have a list of items and show/hide one <li>
at a time without engaging ALL of them in the list? Just seeing if anyone had something clever.
I want to find the parent of each link in a list so it only slideToggle's the appropriate <li>
as you go down. I'm trying to list classes for a school and you can open them and see more as you go along, but not open ALL of them at once, and without writing 200 click statements ;)
$('.link').click(function() {
$('.li').slideToggle();
});
$(this).parent().parent().next('.toggle').toggle('slow')
or
$(this).closest('tr').next('.toggle').toggle('slow');