I am using fullPage.js. It's working on desktop as expected no issue, but if I run same code on iPad it is not working and on android device it sometimes work and sometimes not. I am doing a website in which click on active pagination text it opens a div.
in jquery.fullpage.js
var li = '<li><a href="#' + link + '" onclick="displayDetails('+i+');"><span>' + tooltip + '</span></a>';
function :
function displayDetails(id) {
if($('#part').hasClass('active'))
{
$("#btn").trigger('click');
}
}
$('#btn').click(function () {
//some piece of code
//to open an div
}
Html code:
<div id="fullpage">
<section class="section" id="part0">
<div id="section0"></div>
</section>
<section class="section" id="part1">
<div id="section1"></div>
</section>
</div>
This code works perfectly on desktop. I am really not getting why it is not working on iPad and android devices.