I have <a> tag that doesn't have (href) attribute. It doesn't respond to on("click") event when the client click (touch) it in some touch devices, but it works with the other devices also it works in chrome developers tools!
HTML code:
<a class="completeTask c hidden" data-id="{{todo[0]}}"><i class="fas fa-check"></i></a>
Javascript code ( using event delegation in jQuery ):
$(".tasks").on("click", ".completeTask", function() {}
What should I add to make it works?