I tried multiple solutions from here:
jQuery click not working in iOS?
or this
How to bind 'touchstart' and 'click' events but not respond to both?
but none of them are working.
This doesn't work at all. I also tried touch start event but even with this event, it doesn't work.
Any other solutions?
$("#more").on("click", function(e) {
console.log(e.type);
if (biography) {
$("#biography").attr("src", "/images/arrow_down.svg");
$("#user-biography").slideUp(500);
$("#biography-arrow").slideUp(499);
biography = false;
}
if (!more) {
$("#user-info").fadeOut(500);
$("#profile-info").fadeOut(500);
$("#more-options").delay(500).slideDown(500);
$("#more-arrow").delay(499).slideDown(500);
more = true;
} else {
$("#user-info").delay(500).fadeIn(500);
$("#profile-info").delay(500).fadeIn(500);
$("#more-options").slideUp(500);
$("#more-arrow").slideUp(499);
more = false;
}
});
EDIT:
Solution found:
window.onload = function () {
document.getElementById("more").onclick = function () {
}
}
Inside also jQuery functions are working.