On-topic: HTML/JS help please

Mark Fowler mark at twoshortplanks.com
Fri Feb 5 17:09:44 GMT 2010

2010/2/5 David Cantrell <david at cantrell.org.uk>:

> Absolutely!  Although I've come up with an Evil But Workable solution
> now - create really long ids that contain all the possible ids I might
> want to collapse.  Now I just need to fiddle with the toggle function to
> instead of just hiding/showing a single element, do it for all the
> elements whose ids contain a particular substring.

Can't you do this with classes?  Remember you can assign multiple
classes to a element, and then you can just collapse all nodes of a
given class (this is trivial in jQuery)


More information about the london.pm mailing list