Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQuery UI dialog option(optionName) method

  • Last Updated : 22 Jan, 2021

This action gets the value currently associated with the specified optionName. optionName’s type is String.


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


  • First, add jQuery Mobile scripts needed for your project.
<link href = 
    rel = "stylesheet">
<script src = ""></script>
<script src = "">

Example 1:


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


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!