Configuring jQuery Mobile Default Settings

<script src="../js/jquery-2.0.3.min.js"></script> <script>   $(document).bind( "mobileinit", function () {     $.mobile.page.prototype.options.headerTheme = "b";     $.mobile.page.prototype.options.footerTheme = "b";   }); </script> <script src="../js/jquery.mobile-custom.min.js"></script>

jQuery Mobile is initialized when the library is loaded. Any page elements with jQuery Mobile tags are initialized as well and use the default settings to create mobile versions of the elements.

Occasionally, you may want to override the default settings. To do this, you need to add a mobileinit event handler to the document object before loading the jQuery Mobile library. Then you ...

Get jQuery and JavaScript Phrasebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.