avvia uno script data un'ID


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $( '[data-role=page]' ).live('pageshow', function(event){
  2. var $et = $( event.target ),
  3. pageID = '#pagina2';
  4. if( $et.is( pageID ) || $et.children(0).is( pageID ) ){
  5. //metti qui l'evento
  6. }
  7. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.