I am using jQuery click
event for toggling my navigation bar. The code I am using is something like this:
$('.nav-button').on('click', function () {
$('.navigation, .nav-button').toggleClass('show-nav');
});
Where .nav-button
is a div
. Everything is fine in Android version of Chrome, but Firefox Android is not doing anything on touching the <div class="nav-button"></div>
Is there any solution, or alternative for jQuery click
event for touch devices?