VOOZH about

URL: https://www.geeksforgeeks.org/jquery/jquery-mobile-loader-disabled-option/

⇱ jQuery Mobile Loader disabled Option - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

jQuery Mobile Loader disabled Option

Last Updated : 23 Jul, 2025

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'.

Syntax:

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

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

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

    $( ".selector" ).loader( "option", "disabled", true);
    or
    $.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="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> 

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

Output:

👁 jQuery Mobile Loader disabled Option
jQuery Mobile Loader disabled Option

Reference: https://api.jquerymobile.com/loader/#option-disabled

Comment

Explore