title: jQuery Mobile: Uncaught cannot call methods on checkboxradio prior to initialization; attempted to call method 'refresh'
body: <p>I am pulling my hair out dealing with this problem.
  These are the code that I used and caused the mentioned problem.</p>
  
  <pre><code>$(document).ready(function () {
      $("#at-site-btn").bind("tap", function () {
          $.mobile.changePage("view/dialog/at-site.php", { transition:"slidedown", role:"dialog" });
      });
      $('#at-site-page').live('pagecreate', function(){
          var $checked_emp    = $("input[type=checkbox]:checked");
          var $this           = $(this);
          var $msg            = $this.find("#at-site-msg");
          $checked_emp.appendTo($msg);
          $checked_emp.trigger('create');
          $msg.trigger('create');
          $(document).trigger('create');
          $this.trigger('create');
          $("html").trigger('create');
  
      });
  });
  </code></pre>
  
  <p>Explanation:</p>
  
  <p>The above code is in a file named hod.php. The file contain a number of checkboxes. These checkboxes and be checked simultaneously and when I pressed the #at-site-btn button the at-site.php appear (as a dialog) and display every checked checkboxes.</p>
  
  <p>This is where the problem occurred. When I pressed the back button in the dialog to go back to the previous page and tried to uncheck those checkboxes, the error pops out as mentioned in the title. There are no calls to 'refresh method' in my code so I don't see the way to fix this.</p>
  
  <ol>
  <li>Can anyone please suggest a way to solve this problem?</li>
  <li>Am I using it right? (I am very new to jQuery Mobile. If there are some concepts behind using JQM please explain it to me [I've tried read JQM Docs it seems so unclear to me]).</li>
  </ol>
  
  <p>Best regards and thank you very much for your answers.</p>