title: Reset Jquery mobile popup
body: <p>Hi i have a jQuery mobile popup with five buttons. based on the users click on a button some buttons are removed using <code>detach()</code> and new ones reappear using <code>$().html()</code>. -- then the user can either select a button or closes the popup. This essentially means the DOM of the popup is modified dynamically using JavaScript based on user clicks. </p>
  
  <p>My question is once the popup is closed &amp; the user reopens the popup he gets the modified popup not the original popup which i have in the static html code. Is there any way i can reset the popup to its original value without having to attach the html code back to the popup dynamically using popupbeforeposition event.</p>
  
  <p>Like we can reload the same jqm page that brings the page to its original state...do we have something like a refresh or reload popup.</p>
  
  <p>Thanks for your help!</p>