Skip to content

mee4dy/easySelectable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery easySelectable

Demo

JQuery easySelectable demo

Description

JQuery easySelectable is a plugin that allows the user to highlight items like selectable jquery-ui but better.

How to use easySelectable?

add the Following code to the <head> of your document.

<link type="text/css" rel="stylesheet" href="css/easySelectable.css" />
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="js/easySelectable.js"></script>
// Do not include both easySelectable.js and easySelectable.min.js

HTML Structure

<ul id="easySelectable">
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>
    <li>7</li>
    <li>8</li>
    <li>9</li>
    <li>10</li>
    <li>11</li>
    <li>12</li>
    <li>13</li>
    <li>14</li>
    <li>15</li>
    <li>16</li>
</ul>

Call easySelectable!

<script type="text/javascript">
$(function(){
    $('#easySelectable').easySelectable();
});
</scirpt>

Play with settings

<script type="text/javascript">
$(function(){
    $('#easySelectable').easySelectable({
        item: 'li',
        state: true,
        onSelecting: function(){
            console.log('onSelecting');
        },
        onSelected: function(){
            console.log('onSelected');
        },
        onUnSelected: function(){
            console.log('onUnSelected');
        }
    });
});
</scirpt>

About

selectable plugin for jquery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published