I have a jQuery sortable with 3 list items with the following ID's
id_1
id_2
id_3
This gets sorted by the user and serialized using the following code
var order = $("#rank").sortable('serialize');
saveResponses(order);
and printed. Which looks like this...
id[]=1&id[]=3&id[]=2
So I've got a couple of questions...
Why does the underscore get converted to "[]="
Is there a strait forward way to get an array of the original ID's? I mean without just doing a string split, and replacing the characters?
It works by default by looking at the id of each item in the format "setname_number", and it spits out a hash like "setname[]=number&setname[]=number".so far for yourserializeproblemarrayof the ids simply use the build-in functiontoArray