Skip to content
Related Articles

Related Articles

jQuery UI dialog isOpen() Method

View Discussion
Improve Article
Save Article
  • Last Updated : 13 Jan, 2021
View Discussion
Improve Article
Save Article

isOpen() Method is used to check if the dialog box is open. This method does not accept any argument


$( ".selector" ).dialog("isOpen");

Approach: First, add jQuery UI scripts needed for your project.

<link href = “” rel = “stylesheet”>
<script src = “”></script>
<script src = “”></script>



<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link href=
    <script src=""></script>
        $(function () {
                autoOpen: false,
            $("#geeks").click(function () {
            $("#geek").click(function () {
                var a = $("#gfg").dialog("isOpen");
    <div id="gfg" title="GeeksforGeeks">
        Jquery UI| isOpen dialog method
    <button id="geeks">Open Dialog</button>
    <button id="geek">Check</button>


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!