android - Jquery Mobile Popup not displaying as a button -


using version 1.2.1

this code

<div data-role="page" id="page2">     <div data-role="header" data-theme="e">          <h3>             page 2         </h3>  <a data-role="button" data-direction="reverse" data-rel="back" href="#page2" data-icon="arrow-l" data-iconpos="left">                     </a>      </div>     <div data-role="content"> <a href="#popupbasic" data-rel="popup">open popup</a>          <div data-role="popup" id="popupbasic">             <p>this basic popup, no options set.                 <p>         </div>         <div data-role="footer" data-position="fixed" data-theme="e">              <h4>             footer         </h4>          </div>     </div> 

i have included files necessary.

<link rel="stylesheet" href="css/jquery.mobile-1.2.1.min.css" />     <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>     <script type="text/javascript" charset="utf-8" src="js/jquery.mobile-1.2.1.min.js"></script> 

i getting "open popup" hyper link appears button in jquery docs website

check link

jquery example link

you forgot add data-role="button" 'a' tag

demo

you should check out latest version though. using 1.2.1 legacy jquery mobile v1.3.1


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -