title: Jquery Mobile. Click events
body: <p>I need that on every page change or on some elemetents (a, input[button, submit], data-role=button) click event show loading message. I tried this piece of code:</p>
  
  <pre><code>$(document).live(`pagebeforehide`, function(){
      $.mobile.showPageLoadingMsg();
      //More stuff to do
  });
  </code></pre>
  
  <p>but it's not working.</p>