Open In App

jQuery Mobile Slider refresh() Method

Last Updated : 20 Dec, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

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 be using the jQuery Mobile Slider refresh() method to refresh the slider functionality. This method does not accept any parameter.

Syntax:

$( ".selector" ).slider("refresh");

CDN Link: First, add jQuery Mobile scripts 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 describes the uses of jQuery Mobile Slider refresh() method.

HTML




<!doctype html>
<html lang="en">
  
<head>
    <meta charset="utf-8">
    <meta name="viewport" content=
        "width=device-width, initial-scale=1">
  
    <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>
  
    <script>
        $(document).ready(function () {
            $("#btn").on('click', function () {
                $("#GFG").slider("refresh");
                alert("Widget Refreshed");
            });
        });
    </script>
</head>
  
<body>
    <center>
        <div data-role="page" id="page1">
            <div data-role="header">
                <h1>GeeksforGeeks</h1>
                <h3>
                    jQuery Mobile Slider refresh() Method
                </h3>
            </div>
  
            <div role="main" class="ui-content">
                <label for="slider">Input slider:</label>
                <input type="range" name="slider" 
                    id="GFG" min="0" max="100" value="30">
            </div>
  
            <input type="button" id="btn" 
                style="width: 250px;" 
                value="Refresh the Widget">
        </div>
    </center>
</body>
  
</html>


Output:

Reference: https://api.jquerymobile.com/slider/#method-refresh



Similar Reads

jQuery Mobile Collapsibleset refresh() Method
jQuery Mobile is a web-based technology that can be used to make responsive content for websites that can be accessed on all types of smartphones, tablets, and desktops and it is also used by many users. In this article, we will be using the jQuery Mobile Collapsibleset refresh() method to update the collapsibleset widget. This method is used to up
2 min read
jQuery Mobile Flipswitch refresh() Method
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 be using the jQuery Mobile Flipswitch refresh() method to refresh and update the flipswitch widget. This method does not accept any parameter. Syntax: $( ".selector" ).flipswitch("refresh")
1 min read
jQuery Mobile Rangeslider refresh() Method
jQuery Mobile is a set of HTML5 based user system interaction widget toolbox used for various purposes build on top of jQuery. In this article, we will learn about the Mobile Rangeslider refresh() method. A Rangeslider is used to get the data in the given range. It has two values, the first value represents the lower range and the last value repres
2 min read
jQuery Mobile Selectmenu refresh() Method
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 be using the jQuery Mobile Selectmenu refresh() method. This will parse the original element and re-renders the menu. Syntax: $( "selector" ).selectmenu( "refresh" ); Arguments: This method
1 min read
jQuery Mobile Toolbar refresh() Method
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 use the jQuery Mobile Toolbar refresh() method to update the toolbar. This method is used to update the visual styling. Syntax: $("selector").toolbar("refresh"); Arguments: This method does
1 min read
jQuery Mobile Reflow refresh() Method
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 be using the jQuery Mobile Reflow Table refresh() method to update the labels in the cells of the specified Reflow Table widget. Syntax: $( ".selector" ).table( "refresh" ); Parameters: Thi
2 min read
jQuery Mobile Column-Toggle Table refresh() Method
jQuery Mobile is an HTML5 based user interface system designed to make responsive websites and apps that are accessible on all smartphone, tablet, and desktop devices. The Column-Toggle table widget allows to hide/show less important columns with the help of a Column button with checkboxes. In this article, we are going to learn the jQuery Mobile C
2 min read
jQuery Mobile Listview refresh() Method
jQuery Mobile is a set of HTML5 based user interaction widget toolbox used for various purposes build on top of jQuery. It is designed to build fast and responsive websites accessible to mobile, tabs, and desktops. jQuery Listview is a widget used to create beautiful lists. It is a simple and responsive Listview used to view the unordered lists. In
2 min read
jQuery Mobile Filterable refresh() Method
jQuery UI is a web-based technology and consists of various GUI widgets, visual effects, and themes. These features can be implemented using the jQuery JavaScript Library. jQuery UI is the best tool for building UI interfaces for the webpages. It can also be used to build highly interactive web applications or can be used to add widgets easily. In
2 min read
How to make Refresh icon using jQuery Mobile ?
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 be making Refresh icon using jQuery Mobile. Approach: First, add jQuery Mobile scripts needed for your project. &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mo
1 min read