ui.sortables problem
ui.sortables problem
<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">(posted this in the main jquery forum...reposting to the ui forum...)<div>
</div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: verdana; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">I've noticed the oddest thing...or perhaps it's not odd at all. I have
a series of lists that I use ui.sortable to move things around...works
great...except...
It creates an extra li element and attaches it to the end of the
active ul group. For instance I start with...
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
And when I'm done dragging, using $('#id').sortables( ... stop:
function(){ }... ); and I alert out the order of things I will get:
(moving two to first position)
<ul>
<li>two</li>
<li>one</li>
<li>three</li>
<li>two</li>
</ul>
I'm not sure how to deal with this...I must be missing something here.
I see in the documentation 'update' where I was hoping to refresh the
order before 'stop'...I've even tried using 'refresh' in my stop
function but nothing works.
Any ideas?
Thanks.... </span></div>