Skip to content
pickList is a simple plugin for jQuery.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Mar 11, 2016
README.md Update README.md Jul 9, 2017
index.html Create index.html Mar 11, 2016
pickList.css Create pickList.css Mar 11, 2016
pickList.js

README.md

pickList is a simple plugin for jQuery.

Installation

Include script after the jQuery library:

<script src="pickList.js"></script>

Usage

Basic setup:

<div id="pickList"></div>  <!-- HTML -->
$("#pickList").pickList(); // JS

To set data into the plugin just include:

var val = {
    01: {id: 01, text: 'Isis'},
    02: {id: 02, text: 'Sophia'},
    03: {id: 03, text: 'Alice'},
    04: {id: 04, text: 'Isabella'},
    05: {id: 05, text: 'Manuela'},
    06: {id: 06, text: 'Laura'}
  };

var pick = $("#pickList").pickList({data: val});

To get data just call the getValues:

 var pick = $("#pickList").pickList({data: val});

 $("#getSelected").click(function () {
     console.log(pick.getValues());
 });

Demo

pickList Simple

pickList Multiple

Author

Gabriel Rodrigues

You can’t perform that action at this time.