Scenario: user clicks on a element, then drags it. Dragging ends elsewhere though. I noticed that when this happens, if I listen to the element that's being dragged, it won't trigger anything unless the cursor is released on the same element when dragging finishes.
How do I trigger an event that starts on an element but ends anywhere else on document?
$('#hotels-slider-handle').on('mouseup touchend click', function() {
$('#booking-input').trigger('change');
});