3

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 ?

AliasgerSW
  • 31
  • 1
  • 5
  • this looks a lot like this question - http://stackoverflow.com/questions/10722730/jquery-click-event-not-working-in-mobile-browsers – TrojanMorse May 11 '15 at 16:49
  • Why would you need to trigger these events? – A. Wolff May 11 '15 at 16:54
  • I need to trigger this event because there is a plugin i have which shows details information of the division which was i clicked. So i need to show that information by default when he comes up to the website. – AliasgerSW Aug 17 '15 at 06:52

1 Answers1

2

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

cursor: pointer

to the clickable elements.

Tatermelon
  • 489
  • 2
  • 10