VOOZH about

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

⇱ jQuery Mobile Loader textVisible Option - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

jQuery Mobile Loader textVisible 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 textVisible Option. The text value will be used under the spinner. The default value of this option is 'false'.

Syntax:

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

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

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

    $( ".selector" ).loader( "option", "textVisible", true );
    or
    $.mobile.loader.prototype.options.textVisible = false;

CDN Links: Add the below jQuery Mobile scripts that will be 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 demonstrates the jQuery Mobile Loader textVisible Option.

Output:

👁 jQuery Mobile Loader textVisible Option
jQuery Mobile Loader textVisible Option

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

Comment

Explore