StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Business Tools
  3. UI Components
  4. Javascript UI Libraries
  5. Draggable JS vs Select2

Draggable JS vs Select2

OverviewComparisonAlternatives

Overview

Select2
Select2
Stacks3.0K
Followers73
Votes0
GitHub Stars26.0K
Forks6.2K
Draggable JS
Draggable JS
Stacks53
Followers72
Votes0
GitHub Stars18.4K
Forks1.1K

Draggable JS vs Select2: What are the differences?

Introduction:

In this article, we will be discussing the key differences between Draggable JS and Select2 in terms of their functionality and features.

  1. Event Handling: Draggable JS primarily focuses on providing a rich set of events that allow developers to have fine-grained control over the dragging and dropping functionality. It offers events like drag:start, drag:move, and drag:stop to handle various stages of dragging. On the other hand, Select2 is more focused on enhancing the user experience of selecting options in a dropdown-like control.

  2. Drag Sources: Draggable JS enables the dragging of any HTML element by defining it as a "drag source". It allows users to select and drag multiple items at once. Conversely, Select2 is designed specifically for working with dropdowns and does not enable dragging of elements.

  3. Droppable Targets: Draggable JS provides the capability to designate HTML elements as "droppable targets" where other elements can be dropped. These droppable targets are specified using CSS selectors or DOM elements. Select2, on the other hand, does not offer any built-in functionality for droppable targets.

  4. Customizability: Draggable JS offers a high level of customization options, allowing developers to define custom CSS classes, constraints, and other properties to fine-tune the dragging behavior. In contrast, Select2 is more focused on providing a predefined set of styles and behaviors that can be easily integrated into existing forms or input fields.

  5. Dependencies: Draggable JS is a standalone library and does not have any external dependencies. It can be used with any JavaScript framework or library. Select2, on the other hand, requires jQuery as a dependency, which needs to be included in the project in order to use Select2.

  6. Accessibility: Draggable JS does not provide specific accessibility features out of the box. However, it can be extended or combined with other libraries to enhance accessibility if required. Select2, on the other hand, comes with built-in accessibility features, making it more suitable for projects that prioritize accessibility compliance.

In Summary, Draggable JS focuses on providing event-based drag and drop functionality with extensive customization options, while Select2 is primarily designed for enhancing the user experience of selecting options in dropdown-like controls, with accessibility features and jQuery dependency.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Detailed Comparison

Select2
Select2
Draggable JS
Draggable JS

It gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options. It comes with support for RTL environments, searching with diacritics and over 40 languages built-in.

Draggable is a modular drag & drop library, allowing you to start small and build up with the features you need. At its most basic, Draggable gives you drag & drop functionality, fast DOM reordering, accessible markup, and a bundle of events to grab on to.

comes with support for RTL environments, searching with diacritics and over 40 languages built-in;Using AJAX you can efficiently search large lists of items;Fully skinnable, CSS built with Sass and an optional theme for Bootstrap 3
Works with native drag, mouse, touch and force touch events;Can extend dragging behaviour by hooking into draggables event life cycle;Can extend drag detection by adding sensors to draggable;The library is targeted ES6 first
Statistics
GitHub Stars
26.0K
GitHub Stars
18.4K
GitHub Forks
6.2K
GitHub Forks
1.1K
Stacks
3.0K
Stacks
53
Followers
73
Followers
72
Votes
0
Votes
0
Integrations
Drupal
Drupal
JavaScript
JavaScript
AngularJS
AngularJS
Meteor
Meteor
Bootstrap
Bootstrap
Yii
Yii
Django
Django
CSS 3
CSS 3
Firefox
Firefox
Ruby
Ruby
ES6
ES6

What are some alternatives to Select2, Draggable JS?

jQuery

jQuery

jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.

AngularJS

AngularJS

AngularJS lets you write client-side web applications as if you had a smarter browser. It lets you use good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. It automatically synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data binding.

React

React

Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.

Vue.js

Vue.js

It is a library for building interactive web interfaces. It provides data-reactive components with a simple and flexible API.

jQuery UI

jQuery UI

Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.

Svelte

Svelte

If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.

Flux

Flux

Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.

Famo.us

Famo.us

Famo.us is a free and open source JavaScript platform for building mobile apps and desktop experiences. What makes Famo.us unique is its JavaScript rendering engine and 3D physics engine that gives developers the power and tools to build native quality apps and animations using pure JavaScript.

Riot

Riot

Riot brings custom tags to all browsers. Think React + Polymer but with enjoyable syntax and a small learning curve.

Marko

Marko

Marko is a really fast and lightweight HTML-based templating engine that compiles templates to readable Node.js-compatible JavaScript modules, and it works on the server and in the browser. It supports streaming, async rendering and custom tags.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase