I am trying to use the goTo function to rotate between images, here is my basic JS:
<script type="text/javascript" charset="utf-8">
$.jQTouch();
$(function () {
$('.touch').live('swipe', function (event, info) {
alert('called' + info.direction);
var id = $(this).parent().next().attr("id");
alert(id);
$.jQTouch.goTo(id, 'slide');
});
});
</script>
This works great up until I get to the $.jQTouch.goTo(id, 'slide');
line and then I get the following error:
$.jQTouch.goTo is not a function
How do I access this goTo function?