I am using the current code:
$('body').mousedown(function() {
$('div#extras').fadeTo('fast', 1);
});
$('body').mouseup(function() {
$('div#extras').delay(2000).fadeTo(1500, 0);
});
This works great in safari but when I upload it and check it out on the ipad it doesnt work?
Not exactly.
Apple Docs
Quote:
(emphasis mine)
Old post but there is universal solution:
Not really answering your question, but may be handy for people who came here just to look for 'jQuery mousedown/mouseup on ipad'
I always use this little trick:
This triggers on touch when using an iPad and reverses the action when clicking outside of the element since it's an hover event. So for example:
Creates a fade in effect 'on click', and a fade out effect 'on mouseup'.
I found out how to do this for the ipad for those who are interested:
Instead of the code I used in my question, you would use:
&