All Projects → X13454 → bootstrap-selectsplitter

X13454 / bootstrap-selectsplitter

Licence: MIT License
Transforms a <select> containing one or more <optgroup> into two chained <select>

Projects that are alternatives of or similar to bootstrap-selectsplitter

react-native-select-pro
React Native dropdown (select) component developed by Mobile Reality
Stars: ✭ 79 (+192.59%)
Mutual labels:  select
linq
A familiar set of functions that operate on JavaScript iterables (ES2015+) in a similar way to .NET's LINQ does with enumerables.
Stars: ✭ 39 (+44.44%)
Mutual labels:  select
Selectable
Touch enabled selectable plugin inspired by the jQuery UI widget.
Stars: ✭ 131 (+385.19%)
Mutual labels:  select
react-native-select-multiple
☑️ A customiseable FlatList that allows you to select multiple rows
Stars: ✭ 155 (+474.07%)
Mutual labels:  select
select
Vue-based selsect component
Stars: ✭ 14 (-48.15%)
Mutual labels:  select
react-native-modal-select-list
☝️ React Native modal component to select options from list
Stars: ✭ 40 (+48.15%)
Mutual labels:  select
node-reactive-postgres
Reactive queries for PostgreSQL
Stars: ✭ 28 (+3.7%)
Mutual labels:  select
epump
ePump是一个基于I/O事件通知、非阻塞通信、多路复用、多线程等机制开发的事件驱动模型的 C 语言应用开发框架,利用该框架可以很容易地开发出高性能、大并发连接的服务器程序。
Stars: ✭ 26 (-3.7%)
Mutual labels:  select
react-functional-select
Micro-sized & micro-optimized select component for React.js
Stars: ✭ 165 (+511.11%)
Mutual labels:  select
tunnel
一款单线程、轻量级和高性能的内网穿透程序,支持TCP流量转发(支持所有TCP上层协议,包括HTTP,SSH等),支持多客户端同时连接
Stars: ✭ 39 (+44.44%)
Mutual labels:  select
ionic-selectable-demo
Ionic SelectSearchable Demo.
Stars: ✭ 22 (-18.52%)
Mutual labels:  select
Algorithms
Java implementation for Introduction to Algorithms book.
Stars: ✭ 58 (+114.81%)
Mutual labels:  select
ng-mat-select-infinite-scroll
Infinite Scroll directive for angular material select component
Stars: ✭ 39 (+44.44%)
Mutual labels:  select
bootstrap5-tags
Replace select[multiple] with nices badges for Bootstrap 5
Stars: ✭ 58 (+114.81%)
Mutual labels:  select
react-native-multiple-select
Customizable & Animated, Easy to Use Multiple Select Library for React Native
Stars: ✭ 31 (+14.81%)
Mutual labels:  select
wl-vue-select
用于vue框架的树形下拉框及带全选的普通下拉框。 Tree drop-down box for vue framework and ordinary drop-down box with select all
Stars: ✭ 24 (-11.11%)
Mutual labels:  select
nhn next gameserver lab 2017 chatServer
NHN Next의 2017년 게임서버 과정 수업에 사용할 채팅 서버. select 기반
Stars: ✭ 32 (+18.52%)
Mutual labels:  select
frontal
An Angular select/dropdown component
Stars: ✭ 20 (-25.93%)
Mutual labels:  select
vue-gridmultiselect
Simple multi-select component with items displayed in a table like UI
Stars: ✭ 41 (+51.85%)
Mutual labels:  select
selectr
✅ The coolest jQuery select plugin you've never seen
Stars: ✭ 19 (-29.63%)
Mutual labels:  select

bootstrap-selectsplitter

Looking for a maintainer! Contact me through the "Issues" of this repo.

Presentation

Transforms a <select> containing one or more <optgroup> in two chained <select>.

This:

image1

Becomes this:

image2

Demo

See the online demo.

How to use

Create a <select> with at least one <optgroup>:

NB: each <option> of your <select> must have a unique value.

<select data-selectsplitter-selector>
  <optgroup label="Category 1">
    <option value="1">Choice 1</option>
    <option value="2">Choice 2</option>
    <option value="3">Choice 3</option>
    <option value="4">Choice 4</option>
  </optgroup>
  <optgroup label="Category 2">
    <option value="5">Choice 5</option>
    <option value="6">Choice 6</option>
    <option value="7">Choice 7</option>
    <option value="8">Choice 8</option>
  </optgroup>
  <optgroup label="Category 3">
    <option value="5">Choice 9</option>
    <option value="6">Choice 10</option>
    <option value="7">Choice 11</option>
    <option value="8">Choice 12</option>
  </optgroup>
</select>

Add the dependency files (jQuery and Bootstrap 3 CSS):

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

<script src="bootstrap-selectsplitter.js"></script>

Call the plugin:

$('select[data-selectsplitter-selector]').selectsplitter();

Bower

bower install bootstrap-selectsplitter

CDN

<script src="//cdn.jsdelivr.net/gh/X13454/[email protected]/bootstrap-selectsplitter.min.js"></script>

Changes

0.1.4 : Resolves an issue when selecting a first option, then another one then selecting the first one again. (Issue 9)

0.1.3 : Resolves two issues with the plugin

  • Plugin now work properly when used multiple times on the same page. (Issue 6)
  • Two jQuery selectors have been corrected. (Issue 5)

0.1.2 : Option elements are now displayed by index (Issue 3)

0.1.1 : Minimum "size" attribute for both select tags has been set to "2" (Issue 1)

0.1.0 : Initial release

Copyright and license

Copyright (C) 2015

Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].