I have a set of Div's which act as buttons. These buttons have a simple jquery click() function which works in all browsers except iOS.
For example:
<div class="button">click me</div>
and
$('.button').click(function(){
alert('hi');
});
I'm not sure why this doesn't work on iOS - clearly there is no 'clicking' in iOS.
Unfortunately I don't have an iphone device to test this myself, but I'm getting a lot of complaints from my clients who want to click things and nothing is happening.
What is the key to getting this working?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…