![]() |
VOOZH | about |
jQuery Mobile is a web-technology used to create responsive and accessible websites and web applications. It is built on top of jQuery.
In this article, we will use jQuery Mobile Popup open() method to open the popup using the specified option(s).
Syntax:
$( ".selector" ).popup( "open", options );
Here the options parameter is of type object which accepts 4 keys:
CDN Links: First, add jQuery CDN links to the project.
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="https://code.jquery.com/jquery-2.1.3.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"></script>
Example: In the example below we used positionTo option to define where we want to open the popup.
Output:
👁 jQuery Mobile Popup open() Method