jQuery UI Dialog width Option Last Updated : 18 Jan, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report Dialog width option is used to set the width of the dialog box in pixels. By default, the value is 300. Syntax: $( ".selector" ).dialog({ width : 120 }); Approach: First, add jQuery UI scripts needed for your project. <link href="https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css"> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> <script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> Example 1: HTML <!doctype html> <html> <head> <link href= "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet"> <script src= "https://code.jquery.com/jquery-1.10.2.js"> </script> <script src= "https://code.jquery.com/ui/1.10.4/jquery-ui.js"> </script> <script> $(function () { $("#gfg").dialog({ autoOpen: false, width: 100 }); $("#geeks").click(function () { $("#gfg").dialog("open"); }); }); </script> </head> <body> <div id="gfg"> Jquery UI| width dialog option </div> <button id="geeks">Open Dialog</button> </body> </html> Output: Example 2: HTML <!DOCTYPE html> <html> <head> <link href= "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet"> <script src= "https://code.jquery.com/jquery-1.10.2.js"> </script> <script src= "https://code.jquery.com/ui/1.10.4/jquery-ui.js"> </script> <script> $(function () { $("#gfg").dialog({ autoOpen: false, width: 300 }); $("#geeks").click(function () { $("#gfg").dialog("open"); }); }); </script> </head> <body> <div id="gfg"> Jquery UI| width dialog option </div> <button id="geeks">Open Dialog</button> </body> </html> Output: Comment More infoAdvertise with us Next Article jQuery UI Dialog width Option T taran910 Follow Improve Article Tags : Web Technologies HTML JQuery jQuery-UI Similar Reads jQuery UI Dialog title Option The article explains the title option which is used to set the title in the dialog box. By default, its value is null. Syntax: $( ".selector" ).dialog({ title : "title" }); Approach: First, add jQuery UI scripts needed for your project. <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-li 1 min read jQuery UI dialog widget() Method The dialog widget() method in jQuery UI returns the dialog box's widget element. Syntax: var a = $( ".selector" ).dialog("widget");Approach: First, add jQuery UI scripts needed for your project. <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = "stylesheet" 1 min read jQuery UI Dialog show Option jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Dialog show Option is used to set how to animate the showing of the dialog. This option contains Boolean or Number or S 1 min read jQuery UI Dialog position Option jQuery UI consists of GUI widgets, visual effects, and themes implemented using HTML, CSS, and jQuery. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Dialog position Option is used to set the position of dialog box. Syntax: $( ".selector" ).dialog({ position: { my: "le 1 min read jQuery UI Dialog modal Option 'modal option' if set to true will disable the other items in the dialog box. By default, value is false. Syntax: $( ".selector" ).dialog({ modal: false }); Approach: First, add jQuery UI scripts needed for your project. <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-u 2 min read Like