Tapping on does not auto-focus linked in Mobile Safari but If an empty function as clickhandler is defined
like this
document.getElem
In iOS 7, this issue still persists without any of the workarounds working for me.
My solution was to combine the click
event with touchend
:
var handler = function(e) { /* do stuff */ };
$("ol input[type=checkbox] ~ label")
.on('touchend', handler)
.on('click', handler);
Some helpful info in this JQuery issue: http://bugs.jquery.com/ticket/5677 Especially the part where it says technically there is no click
event on mobile.