$(document).ready(function()
{
$('.sortable').sortable(
{
connectWith:'.sortable',
update: function()
{
alert('sorted');
}
});
});
<ul class='sortable'>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
<ul class='sortable'>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
Ok, this alert two times when I sort with ULs. I need one time alert even sorted with UL or Li.
I have found a way to do it.