Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQuery Mobile Rangeslider enable() Method

  • Last Updated : 23 Dec, 2021

Query Mobile is a set of HTML5 based user system interaction widget toolbox used for various purposes build on top of jQuery. It is designed to build fast and responsive sites accessible to mobile, tabs, and desktops. In this article, we will learn about the Mobile Rangeslider enable() method.

A range slider is used to get or set data with the given range. It has two values, the first value represents the lower range and the last value represents the upper range. The enable() method is used to enable the created range slider on the page.

Syntax:

$('selector').rangeslider('enable');

 

Parameters: This method does not accept any parameters.

CDN Link: First, add jQuery Mobile scripts 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.10.2.min.js”></script>
<script src=”https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js”></script>

Example: This example describes the uses of the jQuery Mobile Rangeslider enable() method.

HTML




<!doctype html>
<html lang="en">
  
<head>
    <link rel="stylesheet" href=
    <script src=
    </script>
    <script src=
    </script>
  
    <script>
        $(document).ready(function () {
            $("#GFG").rangeslider("enable");
        });
    </script>
</head>
  
<body>
    <div data-role="page" id="page1">
        <div data-role="header">
            <h1>GeeksforGeeks</h1>
            <h3>
                jQuery Mobile Rangeslider enable() method
            </h3>
        </div>
  
        <div data-role="rangeslider" id="GFG">
            <label for="range-slider-1">
              Rangeslider:
            </label>
            <input name="range-slider-1"
                   min="0" max="100" value="30" type="range">
  
            <label for="range-slider-2">
              Rangeslider:
            </label>
            <input name="range-slider-2"
                   min="0" max="100" value="80" type="range">
        </div>
    </div>
</body>
  
</html>

Output:

Reference: https://api.jquerymobile.com/rangeslider/#method-enable


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!