Question

html

<ul class="tabs">
    <li><a href="#" title="item detail" class="menu-list" name="1">Menu 1</a></li>
    <li><a href="#" title="item detail" class="menu-list" name="2">Menu 2</a></li>
    <li><a href="#" title="item detail" class="menu-list" name="3">Menu 3</a></li>
</ul>

JS

$(document).ready(function() {
$(".menu-list").on("click", function(){
    //not fired every click!
    return false;
});

It fired. But not fired every touchUp! on my android mobile browser. (It fired every click on Chrome of pc) Why this phenomenon is occurred?

Thanks for reading.

Was it helpful?

Solution

It was not the problem of onClick.

Inside callback function, the append code not work properly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top