The jQuery sortable plugin is probably one of the most known features of the library but sometimes you are not willing to include the whole jQuery UI library just to add this feature. Instead, you might want to use another vanilla library to implement this feature or complement it with jQuery (no jQuery UI). In […]
The post Top 5: JavaScript and JQuery Plugins For Sortable and Draggable Lists appeared first on Megri Blog: Latest Articles on Business, Finance, Tech and Health.
The jQuery sortable plugin is probably one of the most known features of the library but sometimes you are not willing to include the whole jQuery UI library just to add this feature. Instead, you might want to use another vanilla library to implement this feature or complement it with jQuery (no jQuery UI).
In this article we will share with you 5 of the most useful plugins to generate sortable lists by drag and drop in JavaScript.
1. HTML5 Sortable.HTML5 is a lightweight vanillajs micro-library that uses native HTML5 drag and drop API to create sortable lists and grids. This template includes:
While a backward facing method penalizes current browsers by making them download enormous files, we choose to ship a tiny package and make obsolete browser pay the penalty of the polyfill. Another benefit is that you’ll likely polyfill those features anyhow so you won’t have any extra burden.
2. jQuery Sortable ListsjQuery plugin for sorting lists and also trees. Smooth movement while dragging and scrolling. You may sort html list elements by mouse. Build tree constructions. Format all live things. You can define an is Allowed callback that defines if a dragged object can be dropped into another. zone like a distance that decides if item will be inserted inside or outside of the active region, speed of autoscroll function. OnDragStart, onChange and complete callback and more are available. See the graphic for better understanding, it describes all active aspects in sortable lists plugin. Now plugin also supports mobile devices. Use jquery-sortable-lists-mobile.js instead of jquery-sortable-lists.js.
3. Ractive.js sortable decorator pluginThis plugin adds a sortable decorator to Ractive that enables elements corresponding to array members to be re-ordered using the HTML5 drag and drop API. The array will be reordered. If the user is dragging the source element over a target element, the target element will be given a class name. This allows you to render the target differently (hide the text, add a dashed border, whatever). The class name is ‘droptarget’ by default.
4. jQuery SortablejQuery Sortable is an opinionated, versatile sorting plugin. It allows you to sort items in a list (or table etc.) horizontally and vertically with the mouse. Supports nested lists and pure drag/drop containers. jQuery Sortable does not rely on jQuery UI and is compatible with Twitter’s Bootstrap (you can even sort the Bootstrap navigation). This plugin includes:
SortableJS is a popular component that enables you to re-order lists by drag and drop using JavaScript. Sortable is a JavaScript module for reorderable drag-and-drop lists. This library includes:
If you know of another great open source component that lets you arrange lists by drag and drop, please share it with the community in the comment box.
Austin Khttps://www.megri.com/
Austin K. is a writer and researcher covering Business, Technology, Lifestyle, Retail, and Travel. With a keen interest in emerging trends, market developments, consumer behavior, and innovation, Austin creates insightful content that helps readers stay informed in a rapidly evolving world. His work explores everything from business strategy and digital transformation to modern lifestyle trends, retail industry shifts, and inspiring travel experiences. Through clear, engaging, and well-researched articles, Austin delivers practical insights and fresh perspectives for professionals, consumers, and curious readers alike.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Do Empty Links’ Href Attributes Need ‘#’ Or ‘javascript:void(0);’? | 0 | 8.4 | 14-10-2026 |
| 2 | How to Spot a Reliable Moving Company Before You Book | 0 | 5 | 09-07-2026 |
| 3 | 8 Instagram Viewer Tools to View Public Profiles Online | 0 | 7.23 | 15-10-2026 |
| 4 | AlienSync Socials Software: A Complete Guide For Modern Digital Management | 0 | 5.16 | 19-10-2026 |
| 5 | 20 Most Popular WordPress Plugins of All Time (Most Downloaded Plugins) | 0 | 4.91 | 03-01-2022 |
| 6 | What Happens If You’re Hit By A Drunk Driver In Mobile, Alabama | 0 | 5.95 | 17-10-2026 |
| 7 | Top 15 Best Elementor Addons for Your WordPress Site | 0 | 6.63 | 05-12-2021 |
| 8 | How Advancements in Barcode Technology Are Transforming Inventory Management | 0 | 2 | 11-07-2026 |
| 9 | When Home Storage Makes Sense (and When It Doesn’t) | 0 | 5 | 09-07-2026 |
| 10 | Top 15 Best WordPress Chat Plugins for Your Business Website | 0 | 5.74 | 10-01-2022 |