[jQuery] Interface Sortables callback
I'm attempting to use Sortables to sort a list of images but can't get the onchange callback to work. I am able to drag and drop the elements just fine. I've also tried other callbacks like onDrag and tried 'onChange' as well.
Here is my code:
$('ul').Sortable({
onchange: function(){alert('test');},
accept: 'image',
activeclass: 'activedrop',
hoverclass: 'hoverdrop',
helperclass: 'sorthelper',
tolerance: 'intersect',
opacity: .7
});
And of course the html looks similar to this:
<ul>
<li class="image"><img src="image1"/></li>
<li class="image"><img src="image2"/></li>
</ul>
Any help will be greatly appreciated.
Thanks,
Kevin
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/