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,753
  • 72
  • 57
  • 129
M1X
  • 4,971
  • 10
  • 61
  • 123

0 Answers0