I have the following event which fires after the user double clicks inside an text input element. It works fine in desktop browsers but nothing happens on mobile ones. I have tried other events like doubletap but nothing happens. It's the keyboard only that shows. A long tap also will be fine.
<input type="text" id="search">
$(document).on('dblclick', '#search', function() {
//
});
The solutions in the other question doesn't work on text input.