Hey all!
I'm using the Interface code for re-arranging items in a list but, I'm
having extreme trouble doing anything with it.
Basically, I'm trying to do a post when a user clicks a save button.
Here is what the syntax is:
queryinfo = "";
i = 1;
$('sortableitem').each(function(){
queryinfo = queryinfo + i + "=" + $(this).id();
i = i + 1;
})
alert(queryinfo);
queryinfo always returns nothing and it always trips up on the id, which
apparently does not exist. Here is what one of those sortable items looks
like:
<li class="sortableitem" id="ID-of-item-I-dearly-want">Item Value
Here</li>
As you can see, sortableitem definately has an id.
Am I calling it incorrectly?
How can I fix it?
Thanks in advance for any help given.
P.S. Stefan Petre: Sortable documentation is incorrect. your example for
$.Sortserialize appears to be wrong, as that function apparently does not
exist. $.SortSerialize is there though!
Cheers,
Dan Atkinson
--
View this message in context:
http://www.nabble.com/Get-individual-Sortable-list-values-tf2189389.html#a6057323
Sent from the JQuery forum at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/