# DragSelect > Select elements by dragging a box around them, like on your desktop, then drag and drop them. Plain JavaScript, with official React (@dragselect/react) and Angular (@dragselect/angular) bindings. This file contains all documentation content in a single document following the llmstxt.org standard. ## Getting Started DragSelect is a small but professional, cross platform library with no dependencies that adds a selection mechanism similar to your operating system to the browser. It allows you to select multiple elements and drag and drop them around. Let's discover how to use **DragSelect in less than 2 minutes**. You don’t believe me? It’s very easy, you’ll see! ### 🧩 Installation (Install it) You can download the binary files and add them to your document. Or better use a Content Delivery Network (CDN). Or even better install it via a package manager like NPM: **NPM** ``` npm i -S dragselect ``` **Yarn** ``` yarn add dragselect ``` **Download** - [DragSelect](https://dragselect.com/DragSelect.js) ([minified](https://dragselect.com/ds.min.js)) - [DragSelect ES6 Module](https://dragselect.com/DragSelect.esm.js) ([minified](https://dragselect.com/ds.esm.min.js)) - From our website: ```html ``` > We don't recommend the direct linking for production set-up. Please use `npm` if you can. **CDN** **Modules** ```html ``` Or Minified: ```html ``` **Traditional** ```html ``` Or Minified: ```html ``` > Using React or Angular? There are official bindings: see the [React](/docs/guided-examples/React) and [Angular](/docs/guided-examples/Angular) guides. ### 🎸 That's it, you're ready to rock! (Use it) DragSelect supports `module.exports`, `AMD Modules` with `define`, `es6 modules` with `.esm` versions and has a fallback to global namespace for maximum out of the box support: **ES6** ```js import DragSelect from "dragselect"; const ds = new DragSelect({ selectables: document.querySelectorAll(".selectable"), }); ds.subscribe("DS:end", (e) => { console.log(e); }); ``` **CommonJS** ```js const DragSelect = require("dragselect"); const ds = new DragSelect({ selectables: document.querySelectorAll(".selectable"), }); ds.subscribe("DS:end", (e) => { console.log(e); }); ``` **AMD** ```js require(["dragselect"], function (DragSelect) { const ds = new DragSelect({ selectables: document.querySelectorAll(".selectable"), }); ds.subscribe("DS:end", (e) => { console.log(e); }); }); ``` **Global** ```js const ds = new DragSelect({ selectables: document.querySelectorAll(".selectable"), }); ds.subscribe("DS:end", (e) => { console.log(e); }); ``` **From CDN** ```js import DragSelect from "https://unpkg.com/dragselect@latest/dist/ds.esm.min.js"; const ds = new DragSelect({ selectables: document.querySelectorAll(".selectable"), }); ds.subscribe("DS:end", (e) => { console.log(e); }); ``` ### 🎬 Aaaand action! (See it)