jQuery UI Sortable refreshPositions() Method
In this article, we will be using the jQuery UI Sortable refreshPositions() Method to refresh the sortable items. It riggers the reloading of all sortable items and allow new items to be recognized.
$( ".selector" ).sortable( "refreshPositions" );
Parameters: This method does not accept any parameter.
Return Value: This method returns an object value.
CDN Link: Below are some jQuery Mobile scripts that will be needed for your project so add these to your project.
<link rel=”stylesheet” href=”https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css”>
<script src= “https://code.jquery.com/jquery-1.12.4.js”></script>
<script src= “https://code.jquery.com/ui/1.12.1/jquery-ui.js”></script>
Example: This example describes the uses of the jQuery UI Sortable refreshPositions() Method.