Skip to content
Related Articles
Open in App
Not now

Related Articles

jQuery Mobile Slider refresh() Method

Improve Article
Save Article
  • Last Updated : 20 Dec, 2021
Improve Article
Save Article

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.


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

CDN Link: First, add jQuery Mobile scripts needed for your project.

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

Example: This example describes the uses of jQuery Mobile Slider refresh() method.


<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content=
        "width=device-width, initial-scale=1">
    <link rel="stylesheet" href=
    <script src="//"></script>
    <script src=
        $(document).ready(function () {
            $("#btn").on('click', function () {
                alert("Widget Refreshed");
        <div data-role="page" id="page1">
            <div data-role="header">
                    jQuery Mobile Slider refresh() Method
            <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">
            <input type="button" id="btn" 
                style="width: 250px;" 
                value="Refresh the Widget">



My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!