I have JQuery UI Sortable+Draggable lists, and i use JQuery .click() for all sortable items, but if i drop new item from draggable list to sortable list, this item do not trigger .click() event.
$(#sortable li).click(function(){
alert('Sortable item clicked');
});
https://jsfiddle.net/1so55b0t/2/
Why?
Okay, i'm replace .click() to .on('click')
And my elements have close button with class .remove and again this does not work for new elements:
$('#sortable li').on('click','.remove',function(){
$(this).parent().remove();
});