Hey there, I'm new to this so please bear with me if I'm not getting everything right with posting... I've been trying to figure out how to swipe left and right for jquery mobile by visiting a few pages. I found this page for my script - - but for some reason, I just can't seem to get it to work. I know it's probably something simple and silly that I'm missing... Can anyone spot the issue for me? Thanks in advance!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<link rel="stylesheet" href="_/css/jquery.mobile.css" />
<script src="_/javascript/jquery.js"></script>
<script src="_/javascript/jquery.mobile.js"></script>
<script>
$('div.ui-page').live("swipeleft", function(){
var nextpage = $(this).next('div[data-role="page"]');
if (nextpage.length > 0) {
$.mobile.changePage(nextpage, "slide", false, true);
}
});
$('div.ui-page').live("swiperight", function(){
var prevpage = $(this).prev('div[data-role="page"]');
if (prevpage.length > 0) {
$.mobile.changePage(prevpage, {transition: "slide",
reverse: true}, true, true);
}
});
</script>
</head>
<body>
<div data-role="page" id="editor">
<div>bucker</div>
</div>
<div data-role="page" id="innovation1">
<div>bunk</div>
</div>
</body>
</html>