$(function(){
// Bind the swipeHandler callback function to the swipe event on div.box
$( "div.box" ).on( "swipe", swipeHandler );
// Callback function references the event target and adds the 'swipe' class to it
function swipeHandler( event ){
$( event.target ).addClass( "swipe" );
}
});
im new but I dont give up, im trying to UNDERSTAND how this works.
I want to make swipe do another thing, BUT...do I need a jquery method to link an url or I can use html5 IN juery mobile?
$( event.target ).addClass( "swipe" );
addclass is the method..I suppose and I want to do another think, addclass just change its color when I swipe in mobile BUT I want to ...change url, thats all.
Can I use html5 code or it must be jquery methods?