jQuery Mobile Page defaults Option Last Updated : 29 Jan, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Page defaults option. When the value of this option is set to true that means other widgets options have default values and causes jQuery Mobile's widget auto enhancement code to remove the step where it retrieves option values from the data attributes. This option helps in improving startup time. It is of the boolean type and its default value is false. Syntax: Initializing the Page with the specified defaults option. $( "Selector" ).page({ defaults: true }); Setting the defaults option: $( "Selector" ).page( "option", "defaults", true ); Getting the defaults option: var disabled = $( "Selector" ).page( "option", "defaults" ); CDN Link: First, add jQuery Mobile scripts needed for your project. <link rel="stylesheet" href="//code.jquery.com/mobile/1.5.0-alpha.1/jquery.mobile-1.5.0-alpha.1.min.css"><script src="//code.jquery.com/jquery-3.2.1.min.js"></script><script src="//code.jquery.com/mobile/1.5.0-alpha.1/jquery.mobile-1.5.0-alpha.1.min.js"></script> Example: This example describes the jQuery Mobile Page defaults option. HTML <!doctype html> <html lang="en"> <head> <link rel="stylesheet" href= "//code.jquery.com/mobile/1.5.0-alpha.1/jquery.mobile-1.5.0-alpha.1.min.css"> <script src= "//code.jquery.com/jquery-3.2.1.min.js"> </script> <script src= "//code.jquery.com/mobile/1.5.0-alpha.1/jquery.mobile-1.5.0-alpha.1.min.js"> </script> </head> <body> <center> <div data-role="page" id="GFG"> <h1 style="color:green;"> GeeksforGeeks </h1> <h3>jQuery Mobile Page defaults Option</h3> <div role="main" class="ui-content"> <h2>Page content</h2> <p>GFG is a CS Portal.</p> </div> <div data-role="footer"> <h3>www.geeksforgeeks.org</h3> </div> <input type="button" id="Button" value="Value of the defaults option"> <div id="log"></div> </div> </center> <script> $(document).ready(function () { $("#GFG").page({ defaults: true }); $("#GFG").page("option", "defaults", true); $("#Button").on('click', function () { var a = $("#GFG").page("option", "defaults"); $("#log").html(a); }); }); </script> </body> </html> Output: jQuery Mobile Page defaults Option Reference: https://api.jquerymobile.com/page/#option-defaults Comment More infoAdvertise with us Next Article jQuery Mobile Pagecontainer defaults Option K Kanchan_Ray Follow Improve Article Tags : Web Technologies JQuery jQuery-Mobile jQuery-Mobile-Page Similar Reads jQuery Mobile panel defaults Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile panel defaults option. When the value of this option is set to true that means other widgets options have defaul 2 min read jQuery Mobile Table defaults Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Table defaults option. When the value of this option is set to true that means other widgets options have defaul 2 min read jQuery Mobile Popup defaults Option jQuery Mobile is a set of HTML5 based user interaction widget toolbox used for various purposes build on top of jQuery. It is designed to build fast and responsive websites accessible to mobile, tabs, and desktops. The popup opens a new small window above the page with some data. A popup is opened b 2 min read jQuery Mobile Pagecontainer defaults Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Pagecontainer defaults option. When the value of this option is set to true that means other widgets options hav 2 min read jQuery Mobile Page dialog Option jQuery Mobile is an HTML5 based user interface system designed to make responsive websites and apps that are accessible on all smartphone, tablet, and desktop devices. Page is a widget in jQuery Mobile to display single or multiple linked components within the HTML document. It is responsible for ma 2 min read jQuery Mobile Page degradeInputs Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Page degradeInputs option. This option specifies how inputs are to be degraded. It accepts boolean values. Note: 2 min read Like