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');
});
in answer to Cerlin Boss who commented to my original post above... this is what I came up with and works well (what I need to trigger gets triggered just fine) - I was looking for more efficient solutions though (ignore the jQuery delays, they're necessary in my scope)