title: jQuery Mobile - Button Click not working in PageLoad, but works If I try after refreshing the page
body: <p>I have two pages. page #1 being a form and the page #2 being a dialog. I am trying to open page #2 in page #1 through a button click. Unfortunately, it is working as expected but not when the page was launched for the first time. It works only after I refresh the page.</p>
  
  <p>I have tried hard but no luck yet. </p>
  
  <p>Need ur help.</p>