AliasgerSW
AliasgerSW

Reputation: 31

How can i fire jQuery .click() or .tap() event on mobile devices explicitly

I am firing a click event on a div by click() function of jquery. It is working good in desktop browser, but in mobile devices it is not working.

I found that click event doesn't supported by mobile browsers, i tried tap event by trigger("tap"), but it is also not working.

I need to tap or click event in mobile devices by jquery/javascript, how can i do this ?

Upvotes: 3

Views: 3217

Answers (1)

Tatermelon
Tatermelon

Reputation: 479

Click events should work on mobile. Sometimes you need to add

cursor: pointer

to the clickable elements.

Upvotes: 2

Related Questions