I have the following jQuery code in a web app that runs a function on a double click. It works well on desktop browsers. Now I want to develop the code further so that it also works on mobile devices with double tap. How can I do that?
Here is my HTML image:
<img ondblclick="imgDblClick()" src="Image2.png" />
And here is the jQuery script:
function imgDblClick() {
alert("Image double clicked");
}