/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$( '[data-role=page]' ).live('pageshow', function(event){ var $et = $( event.target ), pageID = '#pagina2'; if( $et.is( pageID ) || $et.children(0).is( pageID ) ){ //metti qui l'evento } });