Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="../../code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"> <script src="../../code.jquery.com/jquery-1.8.3.min.js"></script> <script src="../../code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> <script> $(document).on("pageinit","#pageone",function(){ $("p").on("swiperight",function(){ $(this).hide(); }); }); </script> </head> <body> <div data-role="page" id="pageone"> <div data-role="header"> <h1>The swiperight Event</h1> </div> <div data-role="content"> <p>If you swipe me in the right direction, I will disappear.</p> <p>Swipe me in the right direction!</p> <p>Swipe me in the right direction, too!</p> </div> <div data-role="footer"> <h1>Footer Text</h1> </div> </div> </body> </html>
Result:
W3Schools.com - Try it yourself