jQuery Flexslider not working in iphone and ipad
<p>I need to remove class from li tag when i click or tap on the navigation arrow in flexslider. It is working perfectly in all my browsers but i can't able to produce the same in iphone and ipad.when i click on navigation arrow slider moves correctly using flexslider plugin code but alert in my code comes rarely not continuously</p>

<pre><code> $(".flex-direction-nav a.flex-next,.flex-direction-nav a.flex-prev").on('click', 'tap', function () {
    alert("hi");        
    $(".repeat-cont li.active-slide.open").removeClass("open");
});
</code></pre>

<p>Do you have any special properties for mobile or any idea on this code?I tried touchstart instead of tap.</p>