sortable serialize

sortable serialize


Hi there,
I have three sortable lists like:
<ul id="block_1" class="sortable">
<li id="listitem_1">Content</li>
<li id="listitem_2">Content</li>
<li id="listitem_3">Content</li>
</ul>
<ul id="block_2" class="sortable">
<li id="listitem_4">Content</li>
</ul>
<ul id="block_3" class="sortable">
<li id="listitem_5">Content</li>
<li id="listitem_6">Content</li>
</ul>
And I have put this javascript on it:
jQuery(".sortable").sortable({ connectWith: ".sortable" }):
Next I want to have some array (in php) like this:
array(
'block_1' => array(
0 => 1,
1 => 2,
2 => 3
),
'block_2' => array(
0 => 4
),
'block_3' => array(
0 => 5,
1 => 6
)
)
I've tried a lot of options with the jQuery().sortable('serialize')
but I don't get the right response... can someone tell me how to do
this?
Regards, Bert