[jQuery] Long List, no particular order of IDs
I have a long list of items for example
+ item 1
-- sub item 1
-- sub item 23
+ item 45
-- sub item 142
+item 995
-- sub item 198
-- sub item 244
As you can see the ids are in no particular order. I'm looking for
the most efficient way of expanding the top level ones. Also I would
like all the items to be editable by their respective owners. <b> It's
essentially a threaded comment system that is collapsed by default.</
b>
Right now I have them in a foreach loop that is generated when the
page is called but I'm guessing there is a faster way to do this.
I look forward to your ideas.
Drew