iPhone 4 not accepting jquery -
simple question: found answer implementing "touch" functions instead of "click" , decent chunk of code, i'm stuck.
$('#info-button').bind("click", function() { $('#slidecaption').toggle('slow', function() { }); });
that's code have(used plain ol' click mate said change bind).
how write include touch function? knowledge isn't enough fathom answers going on here. internet beers helpful answer.
i use library in case. experiences http://eightmedia.github.com/hammer.js/ has worked in projects.
example:
$('#info-button').hammer().on("tap", function() { $('#slidecaption').toggle('slow', function() { }); });
Comments
Post a Comment