8000 GitHub - shenzudan/fSelect: A jQuery dropdown multiselect library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000 forked from mgibbs189/fSelect

A jQuery dropdown multiselect library

Notifications You must be signed in to change notification settings

shenzudan/fSelect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fSelect

A jQuery select box replacement library (live demo)

Usage

$('.your-select').fSelect();

Available options

$('.your-select').fSelect({
    placeholder: 'Select some options',
    numDisplayed: 3,
    overflowText: '{n} selected',
    noResultsText: 'No results found',
    searchText: 'Search',
    showSearch: true,
    showConfirm: true,
    activeRecall: function() {
        console.log('activeRecall');
        alert('activeRecall');

        return true;
    },
    
    inactiveRecall: function() {
        console.log('inactiveRecall');
        alert('inactiveRecall');

        return true;
    }
});
  • placeholder (str) - the default placeholder text
  • numDisplayed (int) - the number of values to show before switching to the overflowText
  • overflowText (str) - the text to show after exceeding the numDisplayed limit
  • noResultsText (str) - the text to show if no choices exist (or an empty string)
  • searchText (str) - the search box placeholder text
  • showSearch (bool) - show the search box?

Methods

$('.your-select').fSelect('reload');
$('.your-select').fSelect('destroy');

Single vs. multi-select

Add the multiple attribute to your <select> to enable multi-select:

<select class="your-select-box" multiple="multiple">

About

A jQuery dropdown multiselect library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.4%
  • CSS 13.0%
  • HTML 7.6%
0