According to this jsbin , I have a sortable list and a button. when I click the button, add something to sortable , and I want to know which sortable event sortable fired? (update, receive) and when an event is detected, do something on this event.
for example, if the user clicks the add button, I want to know what event is fired and do something in the event. for example, when updating fire, I do something in the sortable update method
$('.sort').sortable({ update:function(){ //if update fire do some thing } }); $('#add').click(function(){ $('.sort').append('<li>Text</li>'); });
jquery jquery-ui jquery-ui-sortable
MBehtemam
source share