VOOZH about

URL: https://www.geeksforgeeks.org/jquery/jquery-mobile-popup-close-method/

⇱ jQuery Mobile Popup close() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

jQuery Mobile Popup close() Method

Last Updated : 23 Jul, 2025

jQuery Mobile is a set of HTML5 based user system interaction widget toolbox used for creating responsive websites and web apps. It is built on top of jQuery.

In this article, we will use jQuery Mobile Popup close() method to close an already opened popup. This method doesn't accept any parameter.

Syntax:

$( ".selector" ).popup( "close" );

CDN Links:

<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 will use Popup close() method to close the opened popup after 3000ms. We have used JavaScript setTimeout() method to wait for 3000ms.

Output:

👁 jQuery Mobile Popup close() Method

Reference: https://api.jquerymobile.com/popup/#method-close

Comment

Explore