Now i’m using jQuery library and i faced the folowing problem:
Supppose i have the sortable list if items
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js> </script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function(){
jQuery(".block").sortable({
axis: 'y'
});
});
</script>
</head>
<body>
<ul class="block" type="none">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</body>
</html>
So ofter order changed, how can i make listener for this event, i mean ,is there any listener for order changed event or something like this.
It’s right there in the documentation. Use the
changeorupdateevent:Also either use
jQueryor$, don’t mix them.