jQuery: The Write Less, Do More JavaScript Library

Sortable Help

View: New views
1 Messages — Rating Filter:   Alert me  

Sortable Help

by Dave Maharaj :: WidePixels.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to send the data in a numbered array but i end up with set[]=56454&set[]=54546522
 
when i need set[0]=56454&set[1]=54546522
 
$(document).ready(function() {
 $("#sortable").sortable({
        
  placeholder: 'ui-state-highlight',
  update: function() {$.post('/order/.php',{data: $("#sortable").sortable('toArray')});}
 });
 
 $("#sortable").disableSelection();
 
});
 
Can someone seewhere I am going wrong here?
 
Thanks
 
Dave