Posted By

axxe16 on 10/02/11


Tagged

jquery mobile


Versions (?)

avvia uno script data un'ID


 / Published in: JavaScript
 

  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  

You need to login to post a comment.