user2625152
user2625152

Reputation: 517

click event is not captured on android but works on other browsers

$('#btnSearchMobile').trigger('click');

document.getElementById('btnSearchMobile').click();

I have tried the above 2 ways to initiate the click on the element id btnSearchMobile. It works for chrome, firefox, safari, but not on android. Do you guys have any idea why?

Sorry if it isn't clear. Do comment :)

Upvotes: 0

Views: 218

Answers (1)

Tom Maton
Tom Maton

Reputation: 1594

Try touchend, instead of click event for mobile devices.

Upvotes: 1

Related Questions