appcropolois
  •  Templates
  • Builder
    •  Product Tour
    •  Sign up
    •  Dashboard
  •  Learn
  •  Discover
  •  Upgrade
  •  Sign in
  •  My Profile
    • View Orders
    • Edit Profile
    • Sign Out
  •  Cart
    ➜ 
  1. Home
  2. Learn
  3. jQuery Mobile Popup
Share

jQuery Mobile Popup

Creating a Popup Widget in jQuery Mobile 1.2.0 is now easier than ever. To create a popup, just add the data-role="popup" attribute to  the popup contents, typically a DIV element. When invoking the Popup Widget from a link, an A tag, add the attribute data-rel="popup" to tell the jQuery Mobile to open the popup when the link is tapped. Make sure that you set the href to the id of the popup div. See the example below:

1
2
3
4
5
6
7
<!-- link to invoke the popup widget -->
<a href="#my-popup" data-rel="popup">Open Popup</a>
 
<!-- basic popup widget with no options set -->
<div data-role="popup" id="my-popup">
    <p>Popup widgets... really easy.<p>
</div>
<!-- link to invoke the popup widget -->
<a href="#my-popup" data-rel="popup">Open Popup</a>

<!-- basic popup widget with no options set -->
<div data-role="popup" id="my-popup">
	<p>Popup widgets... really easy.<p>
</div>

 

Some of the options that you can setup for the jQuery Mobile Popup are:

  • corners
  • history
  • intSelector
  • overlayTheme
  • positionTo
  • shadow
  • theme
  • tolerance
  • transition
–

By: Raul Sanchez
Categories: How-To, jQuery Mobile, Web Technology, Webclips
Posted on: Monday, November 12, 2012

Sign in to post your comment


Not registered? Create an Account.

Lost your password? Click here to recover.

Building Apps?

Create, customize, and publish mobile web applications using the Appcropolis Mobile Builder.

Get Started
Browse Categories
  • Books (0)
  • CSS3 (2)
  • Design (0)
  • Frameworks (10)
  • How-To (6)
  • HTML5 (2)
  • jQuery Mobile (7)
  • Miscelaneous (1862)
  • Mobile Builder (1)
  • News (9)
  • Opinion (1)
  • User Experience (0)
  • Web Technology (11)
  • Webclips (4)

Ready-to-use Templates

Check out Appcropolis Mobile Templates

We offer 1,000's of mobile templates that are fully designed, coded, and ready to use. Learn more.

Download Free Templates

Contact Us

Your feedback means the world to us.
Contact us if you have any questions or
any feature requests:

Saint Louis, MO 63101
911 Washington Ave
Email: info@appcropolis.com

Appcropolis

  •   About Us
  •   Blog
  •   Discover
  •   Templates
  •   Contact Us

Get Free Templates

Subscribe to our newsletter to receive
notification about new templates, prodcut updates,
and technical articles.


© 2025 Appcropolis, LLC · All Rights Reserved
Sitemap  ·  Terms Of Service  ·  Privacy