According to this jsbin i have a sortable
list and a button . when click on button something add to sortable
and i want to know which event of sortable
is fired?(update,receive) and when finding the event do something on that event.
for example if user click on add
button i want to know which event is fired and doing something on event . for example if update fire i do some thing in update method of sortable
$('.sort').sortable({
update:function(){
//if update fire do some thing
}
});
$('#add').click(function(){
$('.sort').append('<li>Text</li>');
});