One of jQuery's latest traversal functions, nextUntil, adds enormous value for anyone using expand collapse functionality in their sites. By allowing you to "select" all…
Expand / Collapse with jQuery – Part II
Since my first post on the subject, I was introduced to a jQuery method called nextUntil(). I didn't realize the possibilities with this method until…
jQuery: Make the first list element expand / collapse the other list elements
$('ul li:first-child').click(function() { $(this).siblings().toggle(); });
Expand / Collapse with JavaScript / jQuery
If your page content is getting lengthy or you just want to add some interactivity to your site, consider expandable/collapsible content. We can leverage the…