title: JQuery Mobile Dynamic Button add Click
body: <p>I have an infowindow in a google map like so,</p>
  
  <pre><code>var content = '&lt;div id="link"&gt;&lt;input type="button" value="Report this light" id="reportBtn"/&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>i am using jquery mobile to bind a 'click' event when the infowindow pops open on the map but it doens't fire, my code:</p>
  
  <pre><code>$(document).on('pageinit', function() {
   $('#reportBtn').on('click', function() {
       alert('it works');
   });
  });
  </code></pre>