Still messing around with this and totally stumped. Wondering if
anyone else has had any luck?
On Jul 17, 3:50 pm, hedgomatic <
hedgoma...@...> wrote:
> Update: tried a stab in the dark with....
>
> $("li").sortable({cursor: "move", opacity:.8, items:function(e,ui)
> { return $(this.siblings()); }, dropOnEmpty:true });
> and
> $("li").sortable({cursor: "move", opacity:.8, items:function(e,ui)
> { return $(this+" ~ li"); }, dropOnEmpty:true });
>
> which I was hoping would grab the currently selected item and any <li>
> siblings and treat them as a sortable, but these result in nothing
> being sortable.
>
> this:
> items:function(e,ui) { var siblingList = this.siblings();
> alert(siblingList); return $(siblingList); }
>
> shows me the proper number of elements based on where I click (objects
> with 1 sibling alert twice, objects with five siblings alert 6 times,
> etc.). I also get an alert for every LI when the page loads, So I feel
> like I'm getting closer there. I tried it as an array as well with no
> luck.
>
> Yet somehow, hilariously, $return("..."); sort of works. Sort of.
> Still stumped. :/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to
jquery-ui@...
To unsubscribe from this group, send email to
jquery-ui-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en-~----------~----~----~----~------~----~------~--~---