Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery click event not working on li in devices(ipad, iphone..)

Jquery click event is not working on li in devices. I tried using click and touchstart events, but the problem when touchstart used is I couldn't scroll down the div. When I try to scroll down by clicking an li, it gets selected. Is there any way to select and scroll li using any jquery events rather than jquery mobile events?

$('#liId').on({ 'touchstart' : function(){ console.log('Event Fired'} });
like image 325
ABHILASH SB Avatar asked Oct 16 '13 05:10

ABHILASH SB


1 Answers

The issue is solved when I added a style class to all li.

.liClass { cursor : pointer; }

like image 110
ABHILASH SB Avatar answered Dec 04 '22 12:12

ABHILASH SB