0

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.

Brian Tompsett - 汤莱恩
  • 5,438
  • 68
  • 55
  • 126
M1X
  • 3,931
  • 7
  • 49
  • 99

0 Answers0