Skip to content
Related Articles

Related Articles

jQuery Mobile Loader disabled Option

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 07 Feb, 2022

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 learn to use the jQuery Mobile Loader disabled Option. Using this option, we can disable the loader. The default value of this option is ‘false‘.


The Syntax to initialize the loader with the disabled option is specified below:

$( ".selector" ).loader({
    disabled: true
$.mobile.loading( 'show', {
   disabled: true
  • Get the disabled option:

    var disabled= $( ".selector" ).loader( "option", "disabled" );
    var disabled= $.mobile.loader.prototype.options.disabled;
  • Set the disabled option:

    $( ".selector" ).loader( "option", "disabled", true);
    $.mobile.loader.prototype.options.disabled= true;

CDN Links: Add the below jQuery Mobile scripts that will be needed for your project.

<link rel=”stylesheet” href=”” />
<script src=””></script>
<script src=””></script> 

Example: This example demonstrates the jQuery Mobile Loader disabled Option.


<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1">
    <link rel="stylesheet"
    <script src=
    <script src=
        <div data-role="page" id="page1">
                <h1 style="color:green;">GeeksforGeeks</h1>
                    jQuery Mobile Loader disabled Option
            <div role="main" class="ui-content">
                <div data-role="controlgroup">
                    <button class="show" data-theme="b">
                      Default loader</button>
                    <button class="hide" >Hide</button>
        $(document).on( "click", ".show", function() {
            var $this = $( this );
            $.mobile.loading( 'show');
            alert("Loader disabled Option: "+
        .on( "click", ".hide", function() {
          $.mobile.loading( "hide" );


jQuery Mobile Loader disabled Option

jQuery Mobile Loader disabled Option


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!