[jQuery] Re: select top level of nested structure

2009-06-11 Thread brian
Actually, I've just gotten it working. It's amazing what a dinner break can do for a stalled mind. As it turns out, I do, in fact, need to be able to sort the deeper list items. Luckily, a requirement is that they *not* be moved into a new list. I forgot to mention earlier that I'd tried using i

[jQuery] Re: select top level of nested structure

2009-06-11 Thread Charlie
one little addition to markup add an id ="list" to ul due to $sortable requirements          $("#section_list li:not('li ul li')").each( function(i) {             position= i+1 myId="foo_"+position     $(this).attr("id",myId);         });         $("#list").sortable();