title: jQuery mobile plugin popup support
body: <p>I'd like to use <strong><a href="http://demos.jquerymobile.com/1.4.5/popup/" rel="nofollow noreferrer">http://demos.jquerymobile.com/1.4.5/popup/</a></strong> to create a popup.</p>
  <p>Here's jquery hosted cdn hosted files: <strong><a href="https://jquerymobile.com/download/" rel="nofollow noreferrer">https://jquerymobile.com/download/</a></strong></p>
  <p>This as far as I've come <strong><a href="https://jsfiddle.net/hbaecklund/1zoj1pms/2/" rel="nofollow noreferrer">https://jsfiddle.net/hbaecklund/1zoj1pms/2/</a></strong> Why doesn't it work?</p>
  <br>
  <br>
  <p>Here's what I tried to create using jquery.</p>
  <pre><code>$( &quot;head&quot; ).append ('&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css&quot; /&gt;&lt;script src=&quot;http://code.jquery.com/jquery-1.11.1.min.js&quot;&gt;&lt;/script&gt;&lt;script src=&quot;http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js&quot;&gt;&lt;/script&gt;');
  $( &quot;.target&quot; ).append('&lt;a href=&quot;#popupCloseRight&quot; data-rel=&quot;popup&quot; class=&quot;ui-btn ui-corner-all ui-shadow ui-btn-inline&quot;&gt;Right close button&lt;/a&gt;&lt;div data-role=&quot;popup&quot; id=&quot;popupCloseRight&quot; class=&quot;ui-content&quot; style=&quot;max-width:280px&quot;&gt;&lt;a href=&quot;#&quot; data-rel=&quot;back&quot; class=&quot;ui-btn ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-icon-notext ui-btn-right&quot;&gt;Close&lt;/a&gt;&lt;p&gt;I have a close button at the top right corner with simple HTML markup.&lt;/p&gt;&lt;/div&gt;');
  </code></pre>