title: Simple Phone gap/jquery project got an error
body: <p>I'm new of phonegap and jquery</p>
  
  <p>In the log cat i got this error:</p>
  
  <p>03-09 18:46:56.170: D/CordovaLog(10139): <a href="http://code.jquery.com/jquery-1.11.1.min.js" rel="nofollow">http://code.jquery.com/jquery-1.11.1.min.js</a>: Line 2 : Uncaught Error: cannot call methods on page prior to initialization; attempted to call method 'bindRemove'</p>
  
  <p>this is my js:</p>
  
  <pre><code>$(document).ready(function() {
      app.initialize();
  });
  
  
  
  var app = {
      initialize: function() {
          this.bind();
      },
  
      bind: function() {
  
          document.addEventListener('deviceready', this.deviceready, false);
          $(".buttonConferma").on("tap", selezione.conferma);
      },
  
      deviceready: function() {
          app.start();
      },
  
      start: function() {
  
  
          }
      }
  };
  
      var selezione = {
           conferma: function() {
  
               navigator.notification.alert("Confermato!");
              }
      }
  </code></pre>
  
  <p>and this is my html head imports:</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-1.11.1.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"&gt;
  &lt;script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/dettagliEvento.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Any advice to resolve the error? other similar question had not helped</p>
  
  <p>I forgot to say I get the error when I press on confirm button (.buttonConferma)</p>