Skip to content
Related Articles

Related Articles

jQuery UI Sortable refresh() Method

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 12 Jan, 2022

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 this article, we will be using the jQuery UI Sortable refresh() Method to refresh the sortable items. It riggers the reloading of all sortable items and allow new items to be recognized.


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

Parameter: This method does not accept any parameter.

Return type: This method returns an object value.

CDN Link: Below are the jQuery UI CDN links that will be needed for your project.

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

Example: This example describes the uses of the jQuery UI Sortable refresh() Method.


<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <link rel="stylesheet"
        #sortable {
            list-style-type: none;
            width: 200px;
        #sortable li {
            margin: 10px 0;
            padding: 0.5em;
            font-size: 20px;
            height: 20px;
            color: black;
            background-color: #02990c;
        #btn1, #btn2
            margin-left: 50px;
            padding: 0.5;
            font-size: 18px;
            height: 30px;
            width: 100px;
        $(function () {
            $("#btn1").on('click', function () {
                alert("Widget Refreshed");
        $(function () {
        <h1 style="color: green;">
        <h4>jQuery UI Sortable refresh() Method</h4>
        <ul id="sortable">
            <li class="ui-state-default">Geeks1</li>
            <li class="ui-state-default">Geeks2</li>
            <li class="ui-state-default">Geeks3</li>
            <li class="ui-state-default">Geeks4</li>
            <li class="ui-state-default">Geeks5</li>
        <div class="res"></div>
            <input type="button" id="btn1"


jQuery UI Sortable refresh() Method


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!