Skip to content
Related Articles
Open in App
Not now

Related Articles

jQuery UI dialog option() Method

Improve Article
Save Article
  • Last Updated : 18 Jan, 2021
Improve Article
Save Article

This action gets an object containing key/value pairs representing the current dialog options hash. This method does not accept any argument


var a = $( ".selector" ).dialog("option");

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 () {
                var a = $("#gfg").dialog("option");
    <div id="gfg" title="GeeksforGeeks">
        Jquery UI| option dialog method
    <button id="geeks">Open Dialog</button>


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!